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 &