angularngx-pagination

404 ngx-pagination angular 2


I get 404 error for ngx-pagination module : whenever I try to start Angular 2 application,

/ngx-pagination is present in node-modules and in package.json.

Can anybody assist? I am using quickstart-master.

Your help will be appreciated.

App.module reference ...

import { NgxPaginationModule } from "ngx-pagination";

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

Solution

  • Make sure that your systemjs.config.js file has been updated to load the module at runtime.

    Simply add:

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

    Into the map object of that file.