What is the easiest way to pass an AngularJS scope variable from directive to controller? All of the examples that I’ve seen seem so complex, isn’t there a way I can access a controller from a directive, and set one of it’s scope variables?
Share
Edited on 2014/8/25:
Here was where I forked it.
Thanks @anvarik.
Here is the JSFiddle. I forgot where I forked this. But this is a good example showing you the difference between = and @