Calling a method defined in controller from a directive's link function

hey all !
i have an attribute directive. i need to call a method defined in a controller from directive’s link function.
How to do this??

I write a demo ,hope it can help you.

1 Like

Awesome Aaron :smile: