Pipe error: Type PaginatePipe is part of the declarations of 2 modules

0

I have the following error in my template:

  

Type PaginatePipe is part of the declarations of 2 modules:

I'm doing the import of the PaginatePipe pipe into 2 modules, which I thought would work normally but did not work.

Example:

So I'm doing in the components

Importing ng2-pagination

  

import {PaginatePipe, PaginationService, PaginationControlsCmp, IPaginationInstance} from 'ng2-pagination';

@Component ({})

  

directives: [PaginationControlsCmp],
    providers: [PaginationService],
    pipes: [PaginatePipe]

Template

  

pagination-controls (pageChange)="getPage ($ event)" id="server" > / pagination-controls &

    
asked by anonymous 14.12.2016 / 18:17

0 answers