We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a90f4f commit 460e43aCopy full SHA for 460e43a
FAQ.md
@@ -2,3 +2,14 @@
2
3
### How do I measure a directive's performance?
4
If your directive uses `$watch`, you should be able to see the watch expression wherever your directive is used.
5
+
6
+### My $watch functions show up as just "function ()" in the performance tab
7
+Use named functions for $watch:
8
9
+```javascript
10
+scope.$watch(function checkIfSomethingChanged() {
11
+ // ...
12
+}, function whenThatChanges(newValue, oldValue) {
13
14
+});
15
+```
0 commit comments