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

Commit 7a36128

Browse files
keropodiumNarretz
authored andcommitted
docs(angular.element): note that it does not find elements by tag name / selector
Closes #13107 Closes #13113
1 parent d2cd8b9 commit 7a36128

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jqLite.js

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
* <div class="alert">**Note:** all element references in Angular are always wrapped with jQuery or
4545
* jqLite; they are never raw DOM references.</div>
4646
*
47+
* <div class="alert alert-warning">**Note:** Keep in mind that this function will not find elements
48+
* by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`
49+
* or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>
50+
*
4751
* ## Angular's jqLite
4852
* jqLite provides only the following jQuery methods:
4953
*

0 commit comments

Comments
 (0)