ElementRef class

A wrapper around a native element inside of a View.

An ElementRef is backed by a render-specific element. In the browser, this is usually a DOM element. DEPRECATED: A wrapper around a native DOM element inside of a View.

Inject Element or HtmlElement from dart:html instead; this will be removed in a future version of AngularDart, and has unnecessary overhead.

Annotations
  • @Deprecated('Inject or reference dart:html Element or HtmlElement instead')

Constructors

ElementRef(dynamic nativeElement)
const

Properties

nativeElement → dynamic
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited