acute-select icon indicating copy to clipboard operation
acute-select copied to clipboard

ac-options function with params

Open shotap opened this issue 9 years ago • 2 comments

Hi, I'm trying to do something like this:

ac-options="l as l in loadData(1)"

When I'm adding a param to the function the directive isn't working, there is an option to do it?

shotap avatar Jun 22 '15 09:06 shotap

No, sorry. The directive passes a set list of parameters (callback function, search text and item offset). You could set a value on the scope, though, and pick that up in the loadData function.

john-oc avatar Jun 22 '15 19:06 john-oc

OK. i will create a PR soon...

shotap avatar Jun 23 '15 19:06 shotap