You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ interface RegistryItem {
33
33
}
34
34
35
35
/**
36
-
* A mapping of Component Name to Component Type
36
+
* A resgitry array of Component Name to details
37
37
* that must be updated with each new component
38
38
* that you wish to load dynamically.
39
39
*/
@@ -246,7 +246,7 @@ For any component that you would like dynamically rendered you need to do the fo
246
246
247
247
2. Add your component to the Dynamic Content Outlet Resgistry Array in `src/app/dynamic-content-outlet/dynamic-content-outlet.registry.ts`.
248
248
249
-
For any component that you would like dynamically rendered, add a new entry to the DynamicContentOutletMappings array in `dynamic-content-outlet.registry.ts`. The following properties must filled out:
249
+
For any component that you would like dynamically rendered, add a new entry to the DynamicContentOutletRegistry array in `dynamic-content-outlet.registry.ts`. The following properties must filled out:
250
250
251
251
-`componentName`: This should match exactly the name of the Component you wish to load dynamically.
252
252
-`componentType`: This should be the literal type of the Component you wish to load dynamically. Not wrapped in quotes.
@@ -264,7 +264,7 @@ For any component that you would like dynamically rendered, add a new entry to t
264
264
},
265
265
```
266
266
267
-
3. In your `angular.json` update `projects > ** > architect > build > options > lazyModules` array and add an item for each module that you added to the registry in order for the Angular AOT compiler to detect and pre-compile your dynamic modules. If you have multiple projects in a folder make sure you add this for the correct project you are importing and using dnyamic modules in. The updated file will look similar to this:
267
+
3. In your `angular.json` update `projects > ** > architect > build > options > lazyModules` array and add an item for each module that you added to the registry in order for the Angular AOT compiler to detect and pre-compile your dynamic modules. If you have multiple projects in a folder make sure you add this for the correct project you are importing and using dynamic modules in. The updated file will look similar to this:
0 commit comments