Add AoT compilation to Angular template

This commit is contained in:
Steve Sanderson
2017-07-07 11:02:50 +01:00
parent 03018f32b7
commit 5191531813
7 changed files with 103 additions and 27 deletions

View File

@@ -10,8 +10,12 @@ import { AppComponent } from './components/app/app.component';
AppModuleShared
],
providers: [
{ provide: 'ORIGIN_URL', useValue: location.origin }
{ provide: 'ORIGIN_URL', useFactory: getOriginUrl }
]
})
export class AppModule {
}
export function getOriginUrl() {
return location.origin;
}