jw-angular-pagination
jw-angular-pagination copied to clipboard
AOT compiling error
When I try to compile with --aot flag I get the following error.
ERROR in node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(9,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(3,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(6,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(12,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(15,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'.
Same with ng build --prod.
Did you find a way to solve this @ivanagui2 ?
setPage () function property must be changed from private to public
file location: node_modules\jw-angular-pagination\lib\jw-pagination.component.d.ts
Yeah we figured that out. Work around would be to extract the component and put it within your application. The point of this issue is currently to make it fixed in the library itself.
it's work with me after deleting private notation in 'setPage' method in node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts