Easiest way to pass an AngularJS scope variable from directive to controller?
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 @ <div ng-controller=”MyCtrl”> <h2>Parent Scope</h2> <input ng-model=”foo”> <i>// Update to see how parent scope interacts with component scope</i> <br><br> <!– attribute-foo … Read more