Providing global config as an opaque token.

This commit is contained in:
William Welling
2017-03-24 16:15:01 -05:00
parent 76b1875e54
commit 99f936ff45
10 changed files with 74 additions and 27 deletions

View File

@@ -21,6 +21,8 @@ import { effects } from '../../app/app.effects';
// see https://github.com/angular/angular/pull/12322
import { Meta } from '../angular2-meta';
import { globalConfig } from '../../config';
export function createTranslateLoader(http: Http) {
return new TranslateStaticLoader(http, './assets/i18n', '.json');
}
@@ -70,6 +72,8 @@ export const UNIVERSAL_KEY = 'UNIVERSAL_CACHE';
{ provide: 'LRU', useFactory: getLRU, deps: [] },
Meta,
globalConfig
]
})
export class MainModule {