Hi Raj, You did work your way through the tutorial?
Ok, an expression is NOT javascript. things like alert, and console.log are not available to you. Only functions that are available on the current scope are. As you did not define an app, nor a controller, you only have the rootScope available. there is very little functionality available there. This means that in your ng-click, console.log, or alert, or any other javascript function will silently fail. Then for your on-click handler. There you have everything available that JS offers, but you have no access to the scope. For security reasons, angular does NOT compile expressions that are attached to DOM event handlers. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
