Last active
November 17, 2018 15:49
-
-
Save NetanelBasal/1e0a38df7da041d5c3529dbb3bdf9e57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { untilDestroyed } from 'ngx-take-until-destroy'; | |
ngOnInit() { | |
const factory = this.fr.resolveComponentFactory(HelloComponent); | |
const ref = this.ref.createComponent(factory); | |
ref.instance.name = 'World'; | |
ref.instance.someOutput.pipe(untilDestroyed(this)).subscribe(...) <====== | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment