I can't get a angular constant to work when I have strict dependency
injection - ng-strict-di
It looks like:
(function () {
'use strict';
var ENV =
{baseHref:'/',name:'development',apiEndPoint:'http://api.rfmsuk.dev',cdnUrl:'http://elasticbeanstalk.s3-eu-west-1.amazonaws.com',appVersion:0.01};
angular
.module('config', [])
.constant('ENV', ENV)
;
})();
I have also tried with the variable object in the constant (instead of by
reference). Also tried without the 'use strict'. I have tried using correctly
formed JSON. But it fails in the latest angular 1.3, and works in 1.2.x.
Anyone using constants with a 1.3 app and have it working? If so, how do you
set up the constant?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.