Hi Dennis,
As everything is properly shielded from the global scope, you can’t use it
directly from the console.
First you have to fetch the element:
var e = document.querySelector('div[ng-controller="TodoController"]')
and then you can use angular to fetch the scope:
var scope = angular.element(e).scope()
after that, you can play arround with the scope:
scope.addTodo()
Does that help?
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.