File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ You can control which elements are tab stops with the `tabindex` attribute
96
96
97
97
<!-- example(dialog-content) -->
98
98
99
- ### AOT Compilation
99
+ ### Configuring dialog content via ` entryComponents `
100
100
101
- Due to the dynamic nature of the ` MatDialog ` , and its usage of ` ViewContainerRef#createComponent() `
102
- to create the component on the fly, the AOT compiler will not know to create the proper
103
- ` ComponentFactory ` for your dialog component by default.
101
+ Because ` MatDialog ` instantiates components at run-time, the Angular compiler needs extra
102
+ information to create the necessary ` ComponentFactory ` for your dialog content component.
104
103
105
- You must include your dialog class in the list of ` entryComponents ` in your module definition so
106
- that the AOT compiler knows to create the ` ComponentFactory ` for it.
104
+ For any component loaded into a dialog, you must include your component class in the list of
105
+ ` entryComponents ` in your NgModule definition so that the Angular compiler knows to create
106
+ the ` ComponentFactory ` for it.
107
107
108
108
``` ts
109
109
@NgModule ({
You can’t perform that action at this time.
0 commit comments