DEV Community

loading...

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 Author

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