Angular.ITacademy.dk
A blog about Learning Angular JavaScript and Best practices
on Service, promise, REST-API

Services

Angular services are substitutable objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app. docs.angularjs.org/guide/services Angular services are: Lazily instantiated – Angular only instantiates a service when an application component depends on it. Singletons – Each component
Read More
on Modules, Value, Service, Constant, Factory, Decorator, Provider

Modules

Constant/Value/Service/Factory/Decorator/Provider | Provider | Singleton| Instantiable | Configurable| |------------|----------|--------------|-------------| | Constant | Yes | No | No | | Value | Yes | No | No | | Service | Yes | No | No | | Factory | Yes | Yes | No | | Decorator | Yes | No? | No | | Provider | Yes | Yes | Yes | Constant A constant can be injected everywhere. A constant can not be
Read More