docs: tidy up description of NgComponentOutlet (#43159)

PR Close #43159
This commit is contained in:
Kirk Larkin 2021-08-17 20:29:47 +01:00 committed by Dylan Hunn
parent 3db35b360a
commit c366d1c8a0

View file

@ -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
*