NgModule

Re-export imported NgModule

Normally a NgModule exports declarations, also support export imported module, that means export all exported declarations of that module. So:

  1. Group small feature modules into one, easier to use module, small modules easier to implement and tracks
  2. Exports low level modules that without it current module's feature set are not complete.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Why NgModule It’s done automatically with Angular CLI, bu...
    yingjieg阅读 568评论 0 1
  • core package 概要:Core是所有其他包的基础包.它提供了大部分功能包括metadata,templa...
    LOVE小狼阅读 2,675评论 0 3
  • @NgModule修饰的class。@NgModule利用一个元数据对象来告诉Angular如何去编译和运行代码。...
    SevenLonely阅读 568评论 0 3
  • NgModule装饰器 declarations指定视图模块,表示哪些部件组成了这个模块 exports导出视图类...
    摘片叶子阅读 290评论 0 2
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,484评论 0 10