I am trying to modify a directive that was custom built and I do not want to modify if possible the way it is currently structured. I want to do exactly as stated in this question:
Using Filters With Directives in AngularJS
instead of a single value I am having trouble with passing an orderBy.
orderBy: 'text': true
I am getting an error telling me the :
is not expected. How can I pass this value via attribute from the element?
I also tried: <a href="#" filter="'orderBy: \'test\': true'">item</a>