Better HN
topnewbestaskshowjobs
Log inSign up

pjstarifa

1 karma · joined Apr 11, 2013 (13y ago) · 1 submissions

Submissions

comment 13y ago · link · parent

The difference is onclick="doSomething()" runs doSomething() in the global scope. Not good!

ng-click="doSomething()" runs doSomething() in the scope of the controller that contains the element. Good!