How to pass custom functions to AngularJS directives
In case you need to pass a callback to your AngularJS directives, looks like one way is to create an isolated scope and create a member with the ‘&’ attr. Here’s a quick&dirty example: In case you have to pass some arguments to the callback, here’s how: Notice that the...
2015, Jun 24 — 1 minute read