Constant

A constant can be injected everywhere. A constant can not be intercepted by a decorator, that means that the value of a constant should never be changed. We can store any kind of JavaScript data type such as a string, number, Boolean, array, object, function, null, and undefined.
angular.module('app', []);

app.constant('MOVIE_TITLE', 'The Matrix');
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +