Reputation: 885
I am using ngx-datatable with Angular 4.x. I am implementing a table as described here. I have got the below error message. Does ngx-datatable have any dependency?
Uncaught Error: Template parse errors: Can't bind to
'columnMode' since it isn't a known property of 'ngx-datatable'
Please let me know your comments on the same.
Thanks, Raja K
Upvotes: 3
Views: 1500
Reputation: 117
I know this is an old post, but this may actually help someone out at some point since I ran across the exact same issue. @kulls you gave the perfect information. Frankly those insensitive comments are uncalled for. This problem is pretty easy to understand without a lot of information provided.
So I happened to be doing the exact same demo you were doing and had the same issue.
The demo provides the import:import { ColumnMode } from 'projects/swimlane/ngx-datatable/src/public-api';
But what it really should be is:import { ColumnMode } from '@swimlane/ngx-datatable';
I think it used to be the first path, but they introduced a breaking change at some point. I'm using Angular 9, but my guess is it's the same for 4.
Upvotes: 5