Created
November 17, 2016 15:37
-
-
Save n00dl3/16eb0774ca4c22fb0cf663aca72bd7dd to your computer and use it in GitHub Desktop.
detach child component and attach to parent
This file contains hidden or 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
this.renderer.detachView(this.stepperSteps.map(el => el.elementRef.nativeElement)); | |
this.renderer.attachViewAfter(this.elementRef.nativeElement, [this.stepperSteps.map(el => el.elementRef.nativeElement)[this.currentStepNumber]]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment