Add button to header of table in angularjs

247 Views Asked by At

How do I add a button to the header of the table. I'm using ng-table-dynamic and I have no idea.

enter image description here

I tried to use headerTemplateURL attribute but it doesn't work.

I don't want to use position to do the trick.

p/s: https://codepen. io/trungducng/pen/RwbqJpb

1

There are 1 best solutions below

0
trungducng On BEST ANSWER

Just use headerTemplateURL and insert url of the component to it:

"headerTemplateURL": "button.html"