Angular 2 router examples + @Routes typing support

后端 未结 6 2244
迷失自我
迷失自我 2020-12-14 17:36

I am trying to find a concrete example on how to use the router in Angular 2. Furthermore the current angular2.d.ts typing file from the 5 min quickstart does

6条回答
  •  执笔经年
    2020-12-14 18:04

    Routing in Angular 2 RC.1

    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

提交回复
热议问题