These are chat archives for angular/angular.js
@kyse: The are only providers and services in AngularJS. For registering providers (that provide services), you use the
.provider() method. When you don't need to explicitly define a provider and just want to register a service, there other higher-level helpers you can use (which are essentially syntactic sugar over
So ragardless of what method you use, you will end up with a provider (which might be automatically created under the hood) and a service.
It is just unfortunate (and a common source of confusion) that one of the helper methods is also called
value) defines a "recipe" for creating such a "substitutable object", but in the end you always end up with an object.
It is just unfortunate (and a common source of confusion) that one of the helper methods is also called service