Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1cb7d6c

Browse files
committed
docs($rootScope): add note about watching File objects
- Add note recommending against watching `File` objects with deep watchers
1 parent 9399d68 commit 1cb7d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/rootScope.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function $RootScopeProvider() {
296296
* - When `objectEquality == true`, inequality of the `watchExpression` is determined
297297
* according to the {@link angular.equals} function. To save the value of the object for
298298
* later comparison, the {@link angular.copy} function is used. This therefore means that
299-
* watching complex objects will have adverse memory and performance implications.
299+
* watching complex objects will have adverse memory and performance implications. This should not be used to watch for objects that are or contain `File` objects.
300300
* - The watch `listener` may change the model, which may trigger other `listener`s to fire.
301301
* This is achieved by rerunning the watchers until no changes are detected. The rerun
302302
* iteration limit is 10 to prevent an infinite loop deadlock.

0 commit comments

Comments
 (0)