You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
429 B
Markdown
16 lines
429 B
Markdown
# Batarang FAQ
|
|
|
|
### How do I measure a directive's performance?
|
|
If your directive uses `$watch`, you should be able to see the watch expression wherever your directive is used.
|
|
|
|
### My $watch functions show up as just "function ()" in the performance tab
|
|
Use named functions for $watch:
|
|
|
|
```javascript
|
|
scope.$watch(function checkIfSomethingChanged() {
|
|
// ...
|
|
}, function whenThatChanges(newValue, oldValue) {
|
|
// ...
|
|
});
|
|
```
|