Does not work with IVY
See original GitHub issue=======
Angular version: 8.0.0
ngx-pagination version: 4.0.0
Description of issue: When using NGX-Pagination with IVY turned on you get the following error:
ERROR Error: Export of name 'paginationApi' not found! at cacheMatchingLocalNames (core.js:12842) at resolveDirectives (core.js:12616) at createDirectivesAndLocals (core.js:12058) at ɵɵelementStart (core.js:15324) at PaginationControlsComponent_Template (template.html:2) at executeTemplate (core.js:11982) at checkView (core.js:13333) at componentRefresh (core.js:13097) at refreshChildComponents (core.js:11685) at refreshDescendantViews (core.js:11591)
Steps to reproduce:
- Create a new Angular 8.0.0 project
- Enable IVY by adding
"angularCompilerOptions": { "enableIvy": true },to the tsconfig.app.json file - Install the package and create the sample project as seen in the readme
- Load the page
Expected result: Error is not produced and the module works
Actual result: Error message is displayed in the console and the page does not load
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
I have created an issue on the official repo
https://github.com/angular/angular/issues/31540
Also created a basic repo for reproduction
https://github.com/hadley8899/angular-ngx-pagination-ivy-issue
Should be working in
9.0.0-next.2.