Importing a lot of modules in Angular

こ雲淡風輕ζ 提交于 2019-12-04 17:04:03

You can create a "shared" module that exports each of the Material Design modules that you need. Then you can simply import the "shared" module into your other modules that need them.

Here is an example:

In this picture I have a shared module that is exporting CommonModule and FormsModule. The ProductModule then imports the SharedModule to get all of the functionality provided by the CommonModule and FormsModule.

I have a youtube video about this here: https://www.youtube.com/watch?v=ntJ-P-Cvo7o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!