I am working on adding pagination in my API result. For this I have install "Ng2-pagination", form this url "https://www.npmjs.com/package/ng2-paginate",
But whenever I hit npm start, It's gives me following error.
app/blog.component.ts(6,23): error TS2305: Module '"/var/www/html/test/ng/node_modules/ng2-pagination/index"' has no exported member 'PaginationControlsCmp'.
app/blog.component.ts(13,3): error TS2345: Argument of type '{ selector: string; templateUrl: string; providers: (typeof PageService | typeof PaginationServic...' is not assignable to parameter of type 'Component'. Object literal may only specify known properties, and 'directives' does not exist in type 'Component'.
blog.component.ts. Also from error'directives' does not exist in type 'Component'.it look like you are usingdirectivesin@Componentdecorator which is deprecated now - ranakrunal9