Discussion for angular (2+) - need help? create a stackblitz with your issue to get help faster using this template: https://stackblitz.com/fork/angular-issue-repro2
Cannot read property 'nativeElement' of null
. Tried inside ngAfterViewInit
as well but same result
ngAfterViewInit
http://plnkr.co/edit/Pm268dYmQ6lu9BvPH6kr?p=preview
Hi guys! I'm just having kind of a mental problem understanding the basics of Observables... So my question basically boils down to one thing: So in this Rx.js world we have an Observable that represents the datasource. Now I can subscribe an Observer to that Observable - so in my understanding the Observer is the function that I pass to the "subscribe"-method... is that correct? If so, I just dont get this syntax:
Observable.create((observer) => {
observer.next(5);
observer.next(10);
})
Why is the "thing" that emits the new values the observer?! can anyone put that in simple words for an rxjs newbie? :grimacing:
ngAfterContentInit
?
ngAfterContentChecked
is called every time change detection runs...
ngAfterContentChecked
is being triggered excessively when a mouse listener is active. hmm.