What is the best place to store application configuration settings in AngularJS? This could be things like application constants, lookups etc. which could be used both from cont
Not sure if there is a "best way" but I personally use a service, here is an abbreviated example:
angular.module('myApp').factory('AppSettings', function() {
return {
language: 'en'
}
});
angular.module('myApp').controller('myController', ['AppSettings',
function(AppSettings) {
$scope.language = AppSettings.language;
}
]);