Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Can't bind to 'mdbTableSort' since it isn't a known property of 'th'. ("

FredB free asked 5 years ago


<table mdbTable class="z-depth-1">
<thead>
  <tr>
    <th *ngFor="let head of headElements; let i = index" scope="col" [mdbTableSort]="elements" [sortBy]="headElements[i]">{{head}}
      <mdb-icon fas icon="sort"></mdb-icon>
    </th>
  </tr>
</thead>
<tbody>
  <tr *ngFor="let el of elements; let i = index">
    <th scope="row">{{el.id}}</th>
    <td>{{el.companyname}}</td>
  </tr>
</tbody>

Can't bind to 'mdbTableSort' since it isn't a known property of 'th'. ("

Any help with this?


Damian Gemza staff answered 5 years ago


Dear FredB,

Could you please check, if you have imported the MDBBootstrapModulesPro.forRoot() in your app.module.ts file?

Please check our Quickstart Guide to be sure, that you have foll the every step properly.

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.1
  • Device: Desktop
  • Browser: chrome
  • OS: win 10 pro
  • Provided sample code: No
  • Provided link: No