404 ngx-分页 angular 2

404 ngx-pagination angular 2

我收到 ngx-pagination 模块的 404 错误:每当我尝试启动 Angular 2 应用程序时,

/ngx-pagination 存在于节点模块和 package.json 中。

有人可以帮忙吗?我正在使用 quickstart-master.

我们将不胜感激。

App.module参考...

import { NgxPaginationModule } from "ngx-pagination";

@NgModule({
 imports: [ BrowserModule, HttpModule, FormsModule, routing, NgxPaginationModule],
 declarations: [ ClientComponent,HeaderComponent],
 bootstrap: [ HeaderComponent ]
})
export class AppModule { }

确保您的 systemjs.config.js 文件已更新以在运行时加载模块。

只需添加:

'ngx-pagination': 'npm:ngx-pagination/dist/ngx-pagination.umd.js'

进入该文件的 map 对象。