Provide a quick summary of differences between AngularJS Service, Provider and Factory?
Quick summary,
Service: create a new instance upon every injection. Utilize ‘this’ object inside the service
Syntax: module.service( ‘serviceName’, function );
Factory: return the value saved in factory object upon every injection. Need to create an object, add methods & properties to it and return that object.
Syntax: module.factory( ‘factoryName’, function );
Providers: Can be configured during the module configuration phase
yntax: module.provider( ‘providerName’, function );