let elm = angular.element(ctrl.column.headerRenderer($elm));
Would you accept a PR to make this potentially breaking change so the code matches the demo? Alternatively, even though it's ugly, we could reverse the order of the arguments to avoid breakage.
It would be useful for headerRenderer to take the same arguments as cellRenderer, as is currently implied in the templates demo at https://github.com/swimlane-contrib/angular-data-table/blob/5bb422f69ec4f77d3aa6ab1006ea6c351eac95f0/demos/templates.html#L80:
Instead, it only gets the element (no scope) https://github.com/swimlane-contrib/angular-data-table/blob/5bb422f69ec4f77d3aa6ab1006ea6c351eac95f0/src/components/header/HeaderCellDirective.js#L59:
Would you accept a PR to make this potentially breaking change so the code matches the demo? Alternatively, even though it's ugly, we could reverse the order of the arguments to avoid breakage.