Notes
Angularjs Service
Content of the notes (2)
Page 1
1) What is Angularjs Services ?
Ans :
* A special unit of code which can be used across different controllers
* service can be utility or bussiness logic units
*service is a singleton
* instantiated only once
* same instance is maintained throughout the life time of application
* Unlike services , controllers are created as they needed destroiyed when they are not in use
* service are always static however controllers are dynamically
* services are loaded lazily
* controller can instantiate a service if service are not instantiated.