htmlcssangularjsngtabledynamic-tables

Add button to header of table in angularjs


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


Solution

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

    "headerTemplateURL": "button.html"