Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
AppModule = __decorate([
core_1.NgModule({
declarations: [
app_component_1.AppComponent,
home_component_1.TestComponent,
home_component_1.HomeComponent,
home_component_1.NotFoundComponent
],
imports: [
platform_browser_1.BrowserModule.withServerTransition({ appId: 'my-app' }),
router_1.RouterModule.forRoot([
{ path: '', component: home_component_1.HomeComponent },
{ path: 'test', component: home_component_1.TestComponent }
// { path: '**', component: NotFoundComponent }
], { initialNavigation: true }),
common_1.TransferHttpCacheModule
],
providers: [],
bootstrap: [app_component_1.AppComponent]
})
], AppModule);
return AppModule;
}());
exports.AppModule = AppModule;
AppModule = __decorate([
core_1.NgModule({
declarations: [
app_component_1.AppComponent,
home_component_1.TestComponent,
home_component_1.HomeComponent,
home_component_1.NotFoundComponent
],
imports: [
platform_browser_1.BrowserModule.withServerTransition({ appId: 'my-app' }),
router_1.RouterModule.forRoot([
{ path: '', component: home_component_1.HomeComponent },
{ path: 'test', component: home_component_1.TestComponent }
// { path: '**', component: NotFoundComponent }
], { initialNavigation: true }),
common_1.TransferHttpCacheModule
],
providers: [],
bootstrap: [app_component_1.AppComponent]
})
], AppModule);
return AppModule;
}());
exports.AppModule = AppModule;