DEV Community

Discussion on: Handling Observables with Structural Directives in Angular

Collapse
 
oleksandr profile image
Oleksandr

Nice article! Thanks

ngOnInit() {
this.showBefore()
this.init.next() // why do we need it? AsyncSubject emits onComplete, doesnt it?
this.init.complete() // possibly it is enough
}

Btw interesting usage of AsyncSubject.

Collapse
 
n_mehlhorn profile image
Nils Mehlhorn

You're right, it's not strictly necessary :)