Open gary-b opened 9 years ago
Looks like we need a null
check here: https://github.com/angular/angular-hint/blob/master/src/modules/scopes.js#L306
Can you find out exactly what watch is triggering the error?
Hi SomeKittens
It was as simple as you presumed. The following code made its way into the referenced app, which ultimately was passing null to $scope.$watch.
$scope.ngDatosPaises = null;
$scope.guardar = function() {
$scope.ngDatosPaises = datosPaises;
$scope.$apply();
};
$scope.$watch($scope.ngDatosPaises, function() {
// alert('hey, myVar has changed!');
// $scope.$apply();
});
When http://citiesinmotion.iese.edu/indicecim/ (Angular v1.2.16) is debugged with Batarang the console shows the following error message on load:
The app then does not load properly. (Result of some testing against apps on builtwith.angularjs.org)