Can't find any tutorial of how to use angular2-data-table
library is here: https://github.com/swimlane/angular2-data-table
The documentation seems to be lacking simple examples.
Can any one give me a simple example of using datatable in angular2
Can't find any tutorial of how to use angular2-data-table
library is here: https://github.com/swimlane/angular2-data-table
The documentation seems to be lacking simple examples.
Can any one give me a simple example of using datatable in angular2
On this page with demos http://swimlane.github.io/ngx-datatable/ there is link to
source
link on top of every demo page. That helped me to understand the library a bit.It seems authors made it almost impossible to spot that
source
link.These is a solution : Implementing data table on easier way
https://www.npmjs.com/package/angular2-datatable
Just change your data, replace [mfData]="Your responsepacket"
Here i am sharing an example as well.
Data:
And consume it with in your template:
I don't recomend using that library for that exact reason. I've been working for a couple of weeks trying to use it in a project and the lack of documentation has made it almost impossible to use.
With that being said here is a relativly simple example. This uses the Angular2 Quickstart as a base and all I did was add angular2-data-table via npm. You'll need to grab the company.json from Github and place it in the root of your project.
package.json
systemjs.config.js
app.module.ts
app.component.ts
index.html