What is the difference between declarations and entryComponents?
Declarations | entryComponents |
---|---|
Used to make Directives including components and pipes within a specific module | Used to register components for offline computation in a module |
Directives, components, and pipes are matched against the HTML only if they are declared or imported | Components used for router config can be added implicitly |
BY Best Interview Question ON 20 Jan 2020