Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pjstarifa
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
pjstarifa
14y ago
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!