From 9d6731eb135813162fb634e9cc0565bec789b090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Salgado?= Date: Fri, 16 Oct 2015 21:37:48 +0200 Subject: [PATCH] docs(angular.element): add a note explaining that this is a selector and doesn't find elements by tag name Closes #13107 --- src/jqLite.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jqLite.js b/src/jqLite.js index c899ac186ee4..ff641f9145ec 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -44,6 +44,10 @@ *
**Note:** all element references in Angular are always wrapped with jQuery or * jqLite; they are never raw DOM references.
* + *
**Note:** Keep in mind that this function is just a selector, it will + * not find elements by tag name for you. Try instead `angular.element(document).find()` + * or `$document.find()`
+ * * ## Angular's jqLite * jqLite provides only the following jQuery methods: *