File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ A component can use `@ViewChild` or `@ViewChildren` to get a reference to a
51
51
52
52
##### ` ComponentPortal `
53
53
Used to create a portal from a component type. When a component is dynamically created using
54
- portals, it must be included in the ` entryComponents ` of its ` NgModule ` .
54
+ portals, it must be included in the ` entryComponents ` of its ` NgModule ` if your project uses ViewEngine. Projects
55
+ using Angular Ivy don't need ` entryComponents ` .
55
56
56
57
Usage:
57
58
``` ts
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ export class HobbitSheet {
50
50
```
51
51
52
52
### Configuring bottom sheet content via ` entryComponents `
53
+ ** You only need to specify ` entryComponents ` if your project uses ViewEngine. Projects
54
+ using Angular Ivy don't need ` entryComponents ` .**
53
55
54
56
Similarly to ` MatDialog ` , ` MatBottomSheet ` instantiates components at run-time. In order for it to
55
57
work, the Angular compiler needs extra information to create the necessary ` ComponentFactory ` for
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export class YourDialog {
40
40
```
41
41
42
42
### Configuring dialog content via ` entryComponents `
43
+ ** You only need to specify ` entryComponents ` if your project uses ViewEngine. Projects
44
+ using Angular Ivy don't need ` entryComponents ` .**
43
45
44
46
Because ` MatDialog ` instantiates components at run-time, the Angular compiler needs extra
45
47
information to create the necessary ` ComponentFactory ` for your dialog content component.
You can’t perform that action at this time.
0 commit comments