Angular 2 - how to use the new angular 2.0.0-rc.1 router

后端 未结 6 1957
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 13:11

I\'ve started to write a new angular 2 project and I found that I installed 2 angular router:

  1. \"@angular/router\": \"2.0.0-rc.1\",
6条回答
  •  忘掉有多难
    2020-12-13 13:23

    update for RC.1

    The new router @angular/router of Angular2 RC.1 is deprecated.
    The Angular team is working on providing a new router again.
    It was suggested to stay with the old @angular/router-deprecated router until this new new router becomes available

    original

    The docs for the new router are work in progress. See for example https://github.com/angular/angular.io/pull/1214

    The new router has a few issues but in overall is working fine already. If you don't just want to learn about how to use it, I'd wait at least for the next Angular RC version. There are some early adopters that reported a few issues where most are probably easy to fix.

提交回复
热议问题