Category Archives: angularjs

Hacking AngularJS for debugging

I have been working with Angular to write a source code wiki. It occurred to me that it is difficult to see exactly what is going on inside the $scope variable unless you use console.log() generously to output values. So I started to look for a way to debug Angular without using Chrome extensions. The hack is to temporarily set a window variable that points to $scope. app.controller(‘notesCtrl’, function($scope, $http,$sce) { //scope hack for debugging […]

| Leave a comment