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

Commit bb16759

Browse files
Toilalpkozlowski-opensource
authored andcommitted
docs(jqLite): clarify that Debug Data must be enabled for scope/isolateScope methods
Closes #9515 Closes #10123
1 parent 2b41a58 commit bb16759

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jqLite.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@
8787
* `'ngModel'`).
8888
* - `injector()` - retrieves the injector of the current element or its parent.
8989
* - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current
90-
* element or its parent.
90+
* element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to
91+
* be enabled.
9192
* - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the
9293
* current element. This getter should be used only on elements that contain a directive which starts a new isolate
9394
* scope. Calling `scope()` on this element always returns the original non-isolate scope.
95+
* Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.
9496
* - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
9597
* parent element is reached.
9698
*

0 commit comments

Comments
 (0)