ng-naras

singular, Plural and Angular

What is Constant?
Registers a value/object that can be accessed by providers and services.
What is Value?
Registers a value/object that can only be accessed by services, not providers.

You can create a Constant or Value and access from anywhere in the application.
Usually you can define Application setting values namely Name, Version and copy right info of the Application.
Now we can see how we use Constant and Value to our existing Application to get the Name of the Application.
There will no change on your Services and App.js.


Navigation