Just assign $scope
as a global variable. Problem solved.
app.controller('myCtrl', ['$scope', '$http', function($scope, $http) {
window.$scope = $scope;
}
We actually need $scope
more often in development than in production.
Mentioned already by @JasonGoemaat but adding it as a suitable answer to this question.