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

hashCode int
The hash code for this object.
no setterinherited
nativeElement → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited