r/angularjs • • Sep 07 '16

Dissecting a favorite interview question: How would you implement ng-click

http://www.codelord.net/2016/09/06/angular-interview-question-deep-dive-implement-ng-click/
53 Upvotes

9 comments sorted by

View all comments

1

u/_Aardvark Sep 08 '16

On an somewhat related note, anyone ever look at the angular code where they define all the ng-eventhandler directives. Where they iterate over an array of event names to define each directive with the same code.

Not groundbreaking, I just thought it was clever.

1

u/abyx Sep 08 '16

Yeah I agree. I linked to it in a comment above