angular.element (API in module ng )

Description

Wraps a raw DOM element or HTML string as a jQuery element. angular.element can be either an alias for jQuery function, if jQuery is available, or a function that wraps the element or string in Angular's jQuery lite implementation (commonly referred to as jqLite).

Real jQuery always takes precedence over jqLite, provided it was loaded before DOMContentLoaded event fired.

jqLite is a tiny, API-compatible subset of jQuery that allows Angular to manipulate the DOM. jqLite implements only the most commonly needed functionality within a very small footprint, so only a subset of the jQuery API - methods, arguments and invocation styles - are supported.

Note: All element references in Angular are always wrapped with jQuery or jqLite; they are never raw DOM references.

Angular's jQuery lite provides the following methods:

In addtion to the above, Angular provides additional methods to both jQuery and jQuery lite:

Usage

angular.element(element);

Parameters

Returns

{Object}

jQuery object.