Skip to content

Commit 900ab63

Browse files
committed
docs(material/dialog): remove entryComponents section
Removes the section referring to `entryComponents` from the Material dialog docs since it's no longer necessary.
1 parent 53d7fb3 commit 900ab63

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/material/dialog/dialog.md

-31
Original file line numberDiff line numberDiff line change
@@ -118,37 +118,6 @@ You can control which elements are tab stops with the `tabindex` attribute
118118

119119
<!-- example(dialog-content) -->
120120

121-
### Configuring dialog content via `entryComponents`
122-
123-
Because `MatDialog` instantiates components at run-time, the Angular compiler needs extra
124-
information to create the necessary `ComponentFactory` for your dialog content component.
125-
126-
For any component loaded into a dialog, you must include your component class in the list of
127-
`entryComponents` in your NgModule definition so that the Angular compiler knows to create
128-
the `ComponentFactory` for it.
129-
130-
```ts
131-
@NgModule({
132-
imports: [
133-
// ...
134-
MatDialogModule
135-
],
136-
137-
declarations: [
138-
AppComponent,
139-
ExampleDialogComponent
140-
],
141-
142-
entryComponents: [
143-
ExampleDialogComponent
144-
],
145-
146-
providers: [],
147-
bootstrap: [AppComponent]
148-
})
149-
export class AppModule {}
150-
```
151-
152121
### Controlling the dialog animation
153122
You can control the duration of the dialog's enter and exit animations using the
154123
`enterAnimationDuration` and `exitAnimationDuration` options. If you want to disable the dialog's

0 commit comments

Comments
 (0)