It is possible to set the href attribute of a base tag in AngularJs?
I want to set the href attribute value of base tag based on a constant value. To do so I've declared the base attribute in the head element as follows: <head> <base ng-href="{{baseUrl}}"> </head> and I set the baseUrl value with this code snippet: app.run(["$rootScope","env", function($rootScope, env){ $rootScope.baseUrl = env.baseUrl; }]); where env is the Angular constant. The locationProvider is configured in this way: .config(function ($locationProvider) { $locationProvider.html5Mode(true); }) When I run it I see the value set correctly: <base ng-href="/" href="/"> but in the console I get