pagination error in html


Topic: pagination error in html

declan.ward pro premium priority asked 2 years ago

Expected behavior

No Error

Actual behavior

Type '{ entries: number; entriesOptions: number[]; }' is not assignable to type 'MdbTablePaginationComponent'.ngtsc(2322)member-list.component.ts(40, 44): Error occurs in the template of component MemberListComponent.

Resources (screenshots, code snippets etc.)

Component

import { MdbTableDirective, MdbTablePaginationComponent } from 'mdb-angular-ui-kit/table';

html

<table
  class="table datatable-table"
  mdbTable
  mdbTableSort
  #table="mdbTable"
  [dataSource]="members"
  [pagination]="paginationOptions"
>

Have I missed something?


declan.ward pro premium priority answered 2 years ago

It works now after adding

 <mdb-table-pagination #pagination></mdb-table-pagination>

which I missed :(


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 4.0.0
  • Device: Desktop
  • Browser: All
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No