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

后端 未结 4 1079
被撕碎了的回忆
被撕碎了的回忆 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:42

    Also wrestled with this for a few hours, upgraded to beta7. Remember to change system.config.js as they changed packagenames to index.js (e.g. "platform-browser-dynamic/platform-browser-dynamic.js" is now named "platform-browser-dynamic/index.js".

    But now I can't seem to get a default route to work, is it ''?

    EDIT: Default routing is simply:

    {
        path: '',
        redirectTo: 'index.php/component/atkstat/dashboard'
    }, 
    

提交回复
热议问题