Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var AppModule = (function () {
function AppModule() {
}
AppModule = __decorate([
core_1.NgModule({
declarations: [AppComponent],
imports: [
platform_browser_1.BrowserModule.withServerTransition({ appId: 'my-app-id' }),
platform_server_1.ServerModule,
src_1.ServerPrebootModule.recordEvents({ appRoot: 'app-root' })
],
bootstrap: [AppComponent]
})
], AppModule);
return AppModule;
}());
// get the JIT compiler (not exposed publically, so need to inject it)
var AppServerModule = /** @class */ (function () {
function AppServerModule() {
}
AppServerModule = __decorate([
core_1.NgModule({
imports: [
app_module_1.AppModule,
// RouterModule.forRoot([
// { path: 'favicon.ico', component: FaviconComponent },
// { path: 'js/:filename', component: JavascriptComponent, data: { customResponse: true } },
// ]),
platform_server_1.ServerModule,
platform_server_1.ServerTransferStateModule,
],
declarations: [],
bootstrap: [app_component_1.AppComponent],
})
], AppServerModule);
return AppServerModule;
}());
exports.AppServerModule = AppServerModule;