underscore not working in column name of Ngx-datatable in Angular 7

0
186
Angular

This example shows how to solve the problem of (_)underscore not working in column name of Ngx-datatable in Angular 7

To solve the above issue you need to use prop attribute of column instead of name. then it will work properly.

Example of Ngx-datatable with underscore in column name in Angular 7

 <ngx-datatable-column prop="first_name" name="first_name">
              <ng-template ngx-datatable-cell-template let-rowIndex="rowIndex" let-value="value" let-row="row"> 
                  {{value}}
              </ng-template>
            </ngx-datatable-column>

Here I have used prop attribute that solves the problem of underscore in column name.

LEAVE A REPLY

Please enter your comment!
Please enter your name here