renamed properties placed on the window object to INJECTED_<property>

This commit is contained in:
alecmerdler 2017-01-23 12:34:22 -08:00
parent 64a4b68216
commit 6b2222a3ec
6 changed files with 37 additions and 27 deletions

View file

@ -7,12 +7,14 @@ routeConfig.$inject = [
'pages',
'$routeProvider',
'$locationProvider',
'INJECTED_FEATURES',
];
export function routeConfig(
pages: any,
$routeProvider: ng.route.IRouteProvider,
$locationProvider: ng.ILocationProvider) {
$locationProvider: ng.ILocationProvider,
INJECTED_FEATURES) {
$locationProvider.html5Mode(true);
// WARNING WARNING WARNING
@ -22,7 +24,7 @@ export function routeConfig(
var routeBuilder: RouteBuilder = new RouteBuilderImpl($routeProvider, pages);
if ((<any>window).__features.SUPER_USERS) {
if (INJECTED_FEATURES.SUPER_USERS) {
// QE Management
routeBuilder.route('/superuser/', 'superuser')
// QE Setup