O'Reilly logo
  • Patrick S thinks this is interesting:

Notice that we are using onclick for the FB.logout() function but ng-click for the myLogin() function, this is because onclick is executed within the context of the window, while ng-click is executed within the AngularJS context.


Cover of AngularJS Web Application Development Blueprints


onclick vs ng-click