Value

A value is nothing more than a simple injectable value. The value can be a string, number but also a function. Value differs from constant in that value can not be injected into configurations, but it can be intercepted by decorators.

snippet
angular.module('app', []);

.value('movieTitle', 'The Matrix');

.controller('MyController', function (movieTitle) {
expect(movieTitle).toEqual('The Matrix');
})
Related Tutorial
4. Value

Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 # # # # #