I am writing a common control that will be used to format data inside a grid. It has 2 parameters that user can set:
- filter (string) that is used to format value
- parameters (any[]) that are used by the filter
In the code I am going to call $filter(filter)(value, ...) - here is my problem. How do I pass my parameters? Each filter can have from no parameters to who knows how many. So, is there a nice way to pass variable number of parameters in Angular? So far I did not run into a way of doing it.