mariuszfoltak / angular2-datatable

DataTable - Simple table component with sorting and pagination for Angular2
202 stars 182 forks source link

Cant have multiple tables in view #21

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi. Thanks for your cool code, I cant seem to be able to add more than one table on the view as the second table data overrides the first. Any suggestions on how to solve this? Paulo

alexjpujol commented 8 years ago

+1 to this

mariuszfoltak commented 8 years ago

Hi, It works, but every datatable must be assigned to different ref-var, eg. <table ... #mf2="mfDataTable"> Link to working example: http://plnkr.co/edit/8lKfz3?p=preview