Angular2 Component Outlet
npm install angular2-component-outlet

```
$ npm install --save angular2-component-outlet
Current Angular Version: 2.0.2
Live Demo: Plunker
---
ComponentOutlet is a directive to create dynamic component.
Example:
`ts
@Component({
selector: 'my-app',
template:
})
export class AppComponent {
self = this; template =
Dynamic Component
;
}@NgModule({
providers: [
provideComponentOutletModule({
imports: [CommonModule]
})
],
declarations: [ComponentOutlet]
})
class AppModule {}
`Result:
`html
Dynamic Component
`Notes
-
ComponentOutlet needs RuntimeCompiler provided by platform-browser-dynamic. You cannot use platformBrowser instead of platformBrowserDynamic.
- For AoT compilation, you can use platformBrowserDynamic().bootstrapModuleFactory()`.