What is entryComponents in angular ngModule?

前端 未结 6 1791
[愿得一人]
[愿得一人] 2020-12-04 06:31

I am working on an Ionic app ( 2.0.0-rc0 ) which depends on angular 2 . So the new introduction of ngModules is included.

6条回答
  •  臣服心动
    2020-12-04 07:15

    The entryComponents array is used to define only components that are not found in html and created dynamically. Angular requires this hint to find entry component and compile them.

    There are two main types of entry components:

    • The bootstrapped root component.
    • A component you specify in a route definition.

    For more detailed information around entry components, please refer angular.io https://angular.io/guide/entry-components

提交回复
热议问题