Trying to play with Angular 2 here... understood that it\'s still in alpha.
How do I access DOM elements from Component? Specifically, I would like to use other librarie
Note: [Deprecated]
You can use "BrowserDomAdapter"
https://angular.io/docs/ts/latest/api/platform/browser/BrowserDomAdapter-class.html
import {BrowserDomAdapter} from 'angular2/platform/browser'
@Component({
selector: 'dom',
templateUrl: 'path/to/template.html',
providers: [BrowserDomAdapter]
})
export class DomComponent {
constructor(private _dom: BrowserDomAdapter) {
var domIWant = this._dom.query('whatever you want to get');
}
}