angular2 – 在NgModule中的声明,提供者和import之间有什么区别
我试图理解angularjs-2,然后我碰到@Module>导入>声明>提供者Angularjs-2quickstart后>imports使得导出的其他模块的声明在当前模块中可用>声明是使当前模块中的指令可用于当前模块中的其他指令。有关模块的更多细节,请参见https://angular.io/docs/ts/latest/guide/ngmodule.html>exports使组件,指令和管道在添加此模块的模块中可用于导入。exports也可以用于重新导出模块,如CommonModule和FormsMo