I am building a small photo application to learn AngularJS 1.3. I come from a PHP background so conceptually this is rather different for me :)
I\'d like to pass a v
I wonder whether this would be the best practice or not. However If the value doesn't need to be secure, one of the most simple way to pass constant values from server is something like this.
In html.
In angular module run method.
angular.module('yourapp', [])
.run(function($rootScope) {
$rootScope.config = _config;
});
In your controller.
console.log($scope.config);