Angular之RouterModule的forRoot与forChild

Angular 提供了一种方式来把服务提供商从模块中分离出来,以便模块既能够带着 ide providers  被根模块导入,也能够不带  providers  被子模块导入。 区别: `forRoot` creates a module that contains all the directives, the given routes, and the router service itsel
相关文章
相关标签/搜索