provideRouter and RouterConfig not found in new @angular/router 3.0.0-alpha.3^

后端 未结 4 1070
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 00:01

I am migrating an angular2 app to RC2 and trying to use the router\'s version 3 alpha.

I have followed the set up of the plunker given by the angular docs for routin

4条回答
  •  天涯浪人
    2020-12-16 00:49

    You need to add this line as @angular/router No umd for router yet

    packages['@angular/router'] = { main: 'index.js', defaultExtension: 'js' };
    

    Have a look package.json and system.config.js of this is , may help you

    http://plnkr.co/edit/y31K7xbiQSVH59qsAOZF?p=preview

提交回复
热议问题