2015-02-27 14:50:06 -08:00
|
|
|
import {DOM} from 'angular2/src/dom/dom_adapter';
|
2015-02-05 13:08:05 -08:00
|
|
|
import {normalizeBlank} from 'angular2/src/facade/lang';
|
2014-11-21 21:19:23 -08:00
|
|
|
|
2015-03-17 19:22:13 +00:00
|
|
|
/**
|
|
|
|
* @publicModule angular2/angular2
|
|
|
|
*/
|
2014-11-14 10:58:58 -08:00
|
|
|
export class NgElement {
|
2015-02-27 14:50:06 -08:00
|
|
|
domElement;
|
|
|
|
constructor(domElement) {
|
2014-11-14 10:58:58 -08:00
|
|
|
this.domElement = domElement;
|
|
|
|
}
|
2015-01-02 14:23:59 -08:00
|
|
|
|
|
|
|
getAttribute(name:string) {
|
|
|
|
return normalizeBlank(DOM.getAttribute(this.domElement, name));
|
|
|
|
}
|
2014-11-14 10:58:58 -08:00
|
|
|
}
|