Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
path: '',
component: LayoutComponent,
children: [
{ path: 'example', loadChildren: './example/example.module#ExampleModule' },
{ path: 'validator', component: ValidatorComponent },
{ path: 'document', redirectTo: 'document/getting-started', pathMatch: 'full' },
{
path: 'document/:id',
component: DocumentComponent
}
]
}
], environment.production ? { useHash: true, preloadingStrategy: PreloadAllModules } : { useHash: true }),
NgZorroAntdModule.forRoot(),
JsonSchemaModule,
MarkdownModule.forRoot(),
UEditorModule.forRoot({
// **注:** 建议使用本地路径;以下为了减少 ng-alain 脚手架的包体大小引用了CDN,可能会有部分功能受影响
// 指定ueditor.js路径目录
path: '//apps.bdimg.com/libs/ueditor/1.4.3.1/',
// 默认全局配置项
options: {
themePath: '//apps.bdimg.com/libs/ueditor/1.4.3.1/themes/'
}
}),
NgxTinymceModule.forRoot({
baseURL: '//cdn.bootcss.com/tinymce/4.7.4/'
})
],
providers: [
StartupService,
{
return AppModule;
}());
AppModule = __decorate([
NgModule({
declarations: [
AppComponent,
HomeComponent,
TablesComponent,
PathComponent,
VariableBindComponent,
TodoComponent
],
imports: [
BrowserModule,
FormsModule,
MarkdownModule.forRoot(),
RouterModule.forRoot([
{ path: '', component: HomeComponent },
{ path: 'home', component: HomeComponent },
{ path: 'tables', component: TablesComponent },
{ path: 'path', component: PathComponent },
{ path: 'live', component: VariableBindComponent },
{ path: 'todo', component: TodoComponent }
])
],
bootstrap: [AppComponent]
})
], AppModule);
export { AppModule };
//# sourceMappingURL=../../../src/app/app.module.js.map
import { VariableBindComponent } from './variable-bind/variable-bind.component';
import { TodoComponent } from './todo/todo.component';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
TablesComponent,
PathComponent,
VariableBindComponent,
TodoComponent
],
imports: [
BrowserModule,
FormsModule,
MarkdownModule.forRoot(),
RouterModule.forRoot([
{ path: '', component: HomeComponent },
{ path: 'home', component: HomeComponent },
{ path: 'tables', component: TablesComponent },
{ path: 'path', component: PathComponent },
{ path: 'live', component: VariableBindComponent },
{ path: 'todo', component: TodoComponent }
])
],
bootstrap: [AppComponent]
})
export class AppModule {
}