ngx-pagination icon indicating copy to clipboard operation
ngx-pagination copied to clipboard

NullInjectorError: No provider for PaginationService!

Open AlonsoK28 opened this issue 5 years ago • 3 comments

Angular version: "@angular/cdk": "^9.0.0",

ngx-pagination version: "ngx-pagination": "^5.0.0",

Description of issue: I already have a module using ngx-pagination, when I create other module to use ngx-pagination into a new component I got this error ERROR Error: NullInjectorError: No provider for PaginationService!`

Steps to reproduce: Import ngx-module but error appears

Where I should import PaginationService ?

Greetings

AlonsoK28 avatar Jul 24 '20 23:07 AlonsoK28

Hi,

Please provide at least some code of your NgModule where you are using this library.

michaelbromley avatar Jul 27 '20 07:07 michaelbromley

I have the same issue but using ngx-easy-table.

ibermaticaAjLopez avatar Dec 17 '21 08:12 ibermaticaAjLopez

I have the same issue but using ngx-easy-table.

You need to import 'TableModule' in the app.module.ts as well as any other specific modules making use of the library,

dylan9b avatar Jun 20 '22 21:06 dylan9b