Programming, System Administration, and everything else.
Wednesday, February 19, 2014
Access your AngularJS services with a handy JS console script
angular.element(document) .injector() .invoke(function($window, Todos, Account) { $window.MyNS = { Todos: Todos, Account: Account } }); Now you have access to MyNS.Todos and MyNS.Account in the console!
No comments:
Post a Comment