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


#1

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??


#2

I write a demo ,hope it can help you.


#3

Awesome Aaron :smile: