angular.element

Work In Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Wraps a raw DOM element or HTML string as jQuery element. angular.element is either an alias for jQuery function if jQuery is loaded or a function that wraps the element or string in angular's jQuery lite implementation.

Real jQuery always takes precedence if it was loaded before angular.

Angular's jQuery lite implementation is a tiny API-compatible subset of jQuery which allows angular to manipulate DOM. The functions implemented are usually just the basic versions of them and might not support arguments and invocation styles.

NOTE: All element references in angular are always wrapped with jQuery (lite) and are never raw DOM references.

Angular's jQuery lite implements these functions:

Usage

angular.element(element);

Parameters

Returns

{Object} jQuery object.