我的 angular md table 的警报没有出现在我的 plunker 中
alerts not showing up in my plunker for my angular md table
- 我正在尝试显示 angular material table。
- 所以我在plunker里调试了
- 我在代码库的不同文件中发出警报
- 但是当我在 plunker 中 运行 它不显示警报。
- 你能告诉我如何解决它吗?
- 在下面提供我的代码和 plunker。
https://plnkr.co/edit/XLYLsuMd3I9ICuBgMeDH?p=preview
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpModule,
PlunkerMaterialModule,
MdNativeDateModule,
ReactiveFormsModule,
InMemoryWebApiModule.forRoot(InMemoryDataService),
],
declarations: [SelectFormExample],
bootstrap: [SelectFormExample],
providers: [AppState]
})
export class PlunkerAppModule {}
platformBrowserDynamic().bootstrapModule(PlunkerAppModule);
alert("I am here");
在 systemjs.config.js
中为 angular-in-memory-web-api
指定一个版本
'angular-in-memory-web-api': 'https://unpkg.com/angular-in-memory-web-api@0.2.4/bundles/in-memory-web-api.umd.js'
没有版本就用最新的。我会找到一个更新的 plunker,因为 plunker 默认为最新的 angular (v5.1.3) 并且它是为 ^4.0.0
设计的
- 我正在尝试显示 angular material table。
- 所以我在plunker里调试了
- 我在代码库的不同文件中发出警报
- 但是当我在 plunker 中 运行 它不显示警报。
- 你能告诉我如何解决它吗?
- 在下面提供我的代码和 plunker。
https://plnkr.co/edit/XLYLsuMd3I9ICuBgMeDH?p=preview
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpModule,
PlunkerMaterialModule,
MdNativeDateModule,
ReactiveFormsModule,
InMemoryWebApiModule.forRoot(InMemoryDataService),
],
declarations: [SelectFormExample],
bootstrap: [SelectFormExample],
providers: [AppState]
})
export class PlunkerAppModule {}
platformBrowserDynamic().bootstrapModule(PlunkerAppModule);
alert("I am here");
在 systemjs.config.js
angular-in-memory-web-api
指定一个版本
'angular-in-memory-web-api': 'https://unpkg.com/angular-in-memory-web-api@0.2.4/bundles/in-memory-web-api.umd.js'
没有版本就用最新的。我会找到一个更新的 plunker,因为 plunker 默认为最新的 angular (v5.1.3) 并且它是为 ^4.0.0
设计的