Re:React.js Introduction for People Who Know Just Enough JQuery
by gordonzhu on Thursday July 09, 2015 @08:18PM
(#9861593)
The concept behind directives like ng-click is actually pretty simple underneath.
The Angular parser will go through the elements in the DOM and look for attributes it knows about like ng-click. When it finds ng-click, it will run the expression "myEvent()" on the controller's $scope.
Also i've never really gotten into all the string magic that angular templates use. ng-click="myEvent()", vs passing the event to the component as a property feels.