Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Ability to pass additional arguments to the callback #13

Closed
jrust opened this issue Jul 20, 2017 · 2 comments
Closed

Ability to pass additional arguments to the callback #13

jrust opened this issue Jul 20, 2017 · 2 comments
Assignees

Comments

@jrust
Copy link
Contributor

jrust commented Jul 20, 2017

I would like to be able to pass additional arguments to my edit-callback. Normally with directives this is done by passing a function expression instead of a function reference. e.g. `edit-callback="onEdit(userId, text)" On the directive side it can be handled with something like:

var fn = $parse($attrs.editCallback);
fn($scope, { text: text, element: element });

Are you open to a change like that?

@b4dnewz b4dnewz self-assigned this Jul 22, 2017
@b4dnewz
Copy link
Member

b4dnewz commented Jul 22, 2017

yep, I look to it right now and I let you know

@jrust
Copy link
Contributor Author

jrust commented Jul 24, 2017

Great! much appreciated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants