ANALYZE_FOR_ENTRY_COMPONENTS

ANALYZE_FOR_ENTRY_COMPONENTS

Experimental Const

Variable Export

export ANALYZE_FOR_ENTRY_COMPONENTS

This token can be used to create a virtual provider that will populate the entryComponents fields of components and ng modules based on its useValue. All components that are referenced in the useValue value (either directly or in a nested array or map) will be added to the entryComponents property.

Example

The following example shows how the router can populate the entryComponents field of an NgModule based on the router configuration which refers to components.

登录查看完整内容