-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Closed
Description
- I'm submitting a strange behavior for ViewContainerRef.createComponent.
- [x ] bug report
- feature request
- support request => Please do not submit support request here, see note at the top of this template.
Current behavior
When want to create component in current component container like this component is rendered outside container of current component: this.componentResolver.resolveComponent(SampleComponent).then((factory) => {
console.log(this.viewContainerRef);
this.viewContainerRef.createComponent(factory);
});
Expected/desired behavior
Expect to load new component inside container of current component example in body-bar component
- Please tell us about your environment:
Project generated with angular cli - Angular version: 2.0.0-rc1
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [TypeScript]
lordazzi
Metadata
Metadata
Assignees
Labels
No labels
