This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Name all anonymous watch functions in Angular #1119
Closed
Description
Instead of:
$scope.$watch(function() { ... }, function() { ... });
we should use named functions everywhere, like this:
$scope.$watch(function fooWatch() {}, function fooWatchAction() {});
With the name in place, debugging using js debugger is easier and batarang can provide more useful output (e.g. in the perf tab).