Example of Creating Basic Factory and Service in AngularJS

Code snippets from TutorialsPoint