Skip to content

Instantly share code, notes, and snippets.

@n00dl3
Created November 17, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n00dl3/16eb0774ca4c22fb0cf663aca72bd7dd to your computer and use it in GitHub Desktop.
Save n00dl3/16eb0774ca4c22fb0cf663aca72bd7dd to your computer and use it in GitHub Desktop.
detach child component and attach to parent
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