SHARE
TWEET
Untitled
a guest
Apr 9th, 2018
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- private loadDetailComponent() {
- this.sidenavService.ideaSelected
- .subscribe((selectedIdea: IIdea) => {
- // load idea-detail-overlay
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(IdeaDetailOverlayComponent);
- const viewContainerRef = this.detailsHost.viewContainerRef;
- viewContainerRef.clear();
- const componentRef = viewContainerRef.createComponent(componentFactory);
- const ideaOverLayComponent = componentRef.instance as IdeaDetailOverlayComponent;
- ideaOverLayComponent.idea = selectedIdea;
- });
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
