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

后端 未结 6 1962
被撕碎了的回忆
被撕碎了的回忆 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:26

    Here is another resource you can try (Angular RC.1): https://playcode.org/routing-in-angular-2-rc-1/

    And here is the code: https://github.com/jlsuarezs/RoutingExample

    I recommend you to use the Angular-CLI to create new routes: https://github.com/angular/angular-cli

    Example: https://github.com/angular/angular-cli#generating-a-route

提交回复
热议问题