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

Ability to pass additional arguments to the callback #13

@jrust

Description

@jrust

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions