declarations: 模块内部Components/Directives/Pipes的列表;
声明当前module所控制的 component ,创建的指令、管道也要添加到其中。
imports: 当前 module 所依赖的项,导入其他的 module , 常见的有 HttpModule, 路由等。
providers: 引入服务(service)到当前模块中。
export: 声明出应用给其他的 module 调用
bootstrap: app启动的根组件
指定应用的主视图(称为根组件),它是所有其它视图的宿主。只有根模块才能设置bootstrap属性