I';I使用angular cli:1.0.0-beta.10没有RouterOutletMap的提供程序
我对如何使用@angular/router 3.0.0-beta.2实现angular cli:1.0.0-beta.10的路由感到困惑。我收到一个错误,RouterOutletMap没有提供程序,非常感谢您的帮助 我的代码是: app/app.component.htmlI';I使用angular cli:1.0.0-beta.10没有RouterOutletMap的提供程序,angular,angular2-routing,angular-cli,Angular,Angular2 Routing,Angular Cli,我对如何使用@angular/router 3.0.0-beta.2实现angular cli:1.0.0-beta.10的路由感到困惑。我收到一个错误,RouterOutletMap没有提供程序,非常感谢您的帮助 我的代码是: app/app.component.html 我不知道这个路由器版本是否应该与RC.5之前的Angular2版本配合使用 在RC.5中,这看起来像 @NgModule({ imports: [ routing ], ... providers:
我不知道这个路由器版本是否应该与RC.5之前的Angular2版本配合使用 在RC.5中,这看起来像
@NgModule({
imports: [ routing ],
...
providers: [ appRoutingProviders ],
})
有关更多详细信息,请参阅