How would I print something to the result screen in JsFiddle from my JavaScript. I can\'t use document.write(), it doesn\'t allow it, neither print
Just to add something that might be useful to some folks....
If you add the debugger console as shown above, you can access the scope by executing this:
scope = angular.element(document.querySelector('[ng-controller=MyCtrl]')).scope();
I find inspecting the scope directly easier than console.log, alert(), etc.