摘要: You can easily show the user which route they are on using Angular 2’s routerLinkActive. Whenever a route matches the routerLink defined on the elemen 阅读全文
posted @ 2016-09-25 21:41 Zhentiw 阅读(473) 评论(0) 推荐(0)
摘要: Angular 2 lazy loading is a core feature of Angular 2. Lazy loading allows your application to start up faster because it only needs to use the main A 阅读全文
posted @ 2016-09-25 21:12 Zhentiw 阅读(1276) 评论(0) 推荐(0)
摘要: Angular 2 navigation is configured using the routerLink directive. The routerLink directive behaves like an href’s you are familiar with, but it hooks 阅读全文
posted @ 2016-09-25 02:54 Zhentiw 阅读(390) 评论(0) 推荐(0)
摘要: Using the Angular 2 router requires defining routes, passing them in to the RouterModule.forRoot and then importing the configured RouterModule into y 阅读全文
posted @ 2016-09-25 02:42 Zhentiw 阅读(569) 评论(0) 推荐(0)