2
我有關於Angular2引導模塊的錯誤,我在diffreent頁面中使用了相同的模塊。angular2-bootstrap-pagination移到更高級別
當我移動的模塊到一個更高的水平,我已經得到了這個錯誤:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'totalItems' since it isn't a known property of 'ng-pagination'.
當我在兩個模塊中使用此指令「從'angular2-bootstrap-pagination/directives/pagination.directive'導入{PaginationDirective};」我得到以下錯誤:錯誤:類型PaginationDirective是2個模塊的聲明的一部分:DevicesModule和Users_ManagementModule!請考慮將PaginationDirective移動到導入DevicesModule和Users_ManagementModule的更高模塊 –
不要將該指令導入兩次,但只能使用一次。 – LiefdeWen
但我需要它在Users_ManagementModule和DevicesModule –