mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: tidy up description of NgComponentOutlet (#43159)
PR Close #43159
This commit is contained in:
parent
3db35b360a
commit
c366d1c8a0
1 changed files with 5 additions and 5 deletions
|
|
@ -10,11 +10,11 @@ import {ComponentFactoryResolver, ComponentRef, Directive, Injector, Input, NgMo
|
|||
|
||||
|
||||
/**
|
||||
* Instantiates a single {@link Component} type and inserts its Host View into current View.
|
||||
* Instantiates a {@link Component} type and inserts its Host View into the current View.
|
||||
* `NgComponentOutlet` provides a declarative approach for dynamic component creation.
|
||||
*
|
||||
* `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
|
||||
* any existing component will get destroyed.
|
||||
* any existing component will be destroyed.
|
||||
*
|
||||
* @usageNotes
|
||||
*
|
||||
|
|
@ -26,10 +26,10 @@ import {ComponentFactoryResolver, ComponentRef, Directive, Injector, Input, NgMo
|
|||
* the Component. Defaults to the injector of the current view container.
|
||||
*
|
||||
* * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
|
||||
* section of the component, if exists.
|
||||
* section of the component, if it exists.
|
||||
*
|
||||
* * `ngComponentOutletNgModuleFactory`: Optional module factory to allow dynamically loading other
|
||||
* module, then load a component from that module.
|
||||
* * `ngComponentOutletNgModuleFactory`: Optional module factory to allow loading another
|
||||
* module dynamically, then loading a component from that module.
|
||||
*
|
||||
* ### Syntax
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue