docs: clarify static router-outlet name attribute (#32973)
PR Close #32973
This commit is contained in:
parent
a9228aabac
commit
ac745c8356
|
@ -18,14 +18,17 @@ import {PRIMARY_OUTLET} from '../shared';
|
||||||
*
|
*
|
||||||
* Acts as a placeholder that Angular dynamically fills based on the current router state.
|
* Acts as a placeholder that Angular dynamically fills based on the current router state.
|
||||||
*
|
*
|
||||||
|
* Each outlet can have a unique name, determined by the optional `name` attribute.
|
||||||
|
* The name cannot be set or changed dynamically. If not set, default value is "primary".
|
||||||
|
*
|
||||||
* ```
|
* ```
|
||||||
* <router-outlet></router-outlet>
|
* <router-outlet></router-outlet>
|
||||||
* <router-outlet name='left'></router-outlet>
|
* <router-outlet name='left'></router-outlet>
|
||||||
* <router-outlet name='right'></router-outlet>
|
* <router-outlet name='right'></router-outlet>
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* A router outlet will emit an activate event any time a new component is being instantiated,
|
* A router outlet emits an activate event when a new component is instantiated,
|
||||||
* and a deactivate event when it is being destroyed.
|
* and a deactivate event when a component is destroyed.
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* <router-outlet
|
* <router-outlet
|
||||||
|
|
Loading…
Reference in New Issue