Skip to content

Commit ae299c2

Browse files
authored
1 parent 4c1948b commit ae299c2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/cdk/portal/portal.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ A component can use `@ViewChild` or `@ViewChildren` to get a reference to a
5151

5252
##### `ComponentPortal`
5353
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`.
5556

5657
Usage:
5758
```ts

src/material/bottom-sheet/bottom-sheet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export class HobbitSheet {
5050
```
5151

5252
### 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`.**
5355

5456
Similarly to `MatDialog`, `MatBottomSheet` instantiates components at run-time. In order for it to
5557
work, the Angular compiler needs extra information to create the necessary `ComponentFactory` for

src/material/dialog/dialog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class YourDialog {
4040
```
4141

4242
### 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`.**
4345

4446
Because `MatDialog` instantiates components at run-time, the Angular compiler needs extra
4547
information to create the necessary `ComponentFactory` for your dialog content component.

0 commit comments

Comments
 (0)