Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: