Currently, I am working with Angular 2.
At the moment, I have been using this method to select a specific DIV element:
<div #aaa>
</div>
@ViewChild('aaa') private aaa: ElementRef;
ngAfterViewInit() {
let item = this.aaa.nativeElement;
item.style.top = '10px';
}
I was wondering if there is an RxJS Observable approach to selecting that particular item and then executing something like item.style.top = '10px';
? Thank you!