1
0

Build setting some configs. Configs used by server.

This commit is contained in:
William Welling
2017-03-24 20:54:24 -05:00
parent 9b23393121
commit 2974d8aab1
17 changed files with 103 additions and 95 deletions

View File

@@ -30,14 +30,8 @@ export class AppComponent implements OnDestroy, OnInit {
recipient: 'World'
};
env: string = this.config.production;
styles = {
color: 'red'
};
constructor(
@Inject(GLOBAL_CONFIG) private config: GlobalConfig,
@Inject(GLOBAL_CONFIG) public EnvConfig: GlobalConfig,
private translate: TranslateService,
private store: Store<HostWindowState>
) {
@@ -45,8 +39,6 @@ export class AppComponent implements OnDestroy, OnInit {
translate.setDefaultLang('en');
// the lang to use, if the lang isn't available, it will use the current loader to get them
translate.use('en');
console.log(this.config);
}
ngOnInit() {