mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 11:07:29 +00:00
Add AoT compilation to Angular template
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user