angular-cn/public/docs/js/latest/api/view/ElementRef-class.jade

77 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-04-19 16:53:18 -04:00
2015-04-22 11:06:51 -04:00
p.location-badge.
2015-04-23 11:27:36 -04:00
exported from <a href="/angular2/view.html">angular2/view</a>
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/core/compiler/element_ref.js#L8">angular2/src/core/compiler/element_ref.js (line 8)</a>
2015-04-19 16:53:18 -04:00
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(parentView:ViewRef, boundElementIndex:number)
2015-04-19 16:53:18 -04:00
:markdown
.l-sub-section
h3 boundElementIndex
:markdown
.l-sub-section
h3 domElement
2015-04-19 16:53:18 -04:00
:markdown
Exposes the underlying DOM element.
(DEPRECATED way of accessing the DOM, replacement coming)
2015-04-19 16:53:18 -04:00
.l-sub-section
h3 getAttribute
2015-04-19 16:53:18 -04:00
pre.prettyprint
code.
getAttribute(name:string)
2015-04-19 16:53:18 -04:00
:markdown
Gets an attribute from the underlying DOM element.
(DEPRECATED way of accessing the DOM, replacement coming)
2015-04-19 16:53:18 -04:00
2015-04-20 16:57:43 -04:00
.l-sub-section
h3 parentView
2015-04-20 16:57:43 -04:00
:markdown
2015-04-20 16:57:43 -04:00