Angular2以组件化的视角来看待web应用,使用Angular2开发的web应用,就是一棵组件树。组件大致分为两类:一类是如list、table这种通放之四海而皆准的通用组件,一类是专为业务开发的业务组件。实际开发中大部分时间我们都需要处理业务组件。对于SPA应用来说,一个通用的问题就是如何控制 ...
分类:
其他好文 时间:
2016-09-27 09:13:18
阅读次数:
501
In this tutorial we are going to learn how to navigate programmatically (or imperatively) by using the Router API. We are going to learn how to use th ...
In this tutorial we are going to learn how to configure the Angular 2 router to cover some commonly used routing scenarios: what if the user goes to t ...
分类:
其他好文 时间:
2016-09-26 21:32:08
阅读次数:
132
You can load resource based on the url using the a combination of ActivatedRouteand Angular 2’s Http service. Since the params and Http are both strea ...
分类:
其他好文 时间:
2016-09-26 17:53:06
阅读次数:
161
The <base href=”/”/> you define will determine how all other assets you plan on loading treat their relative paths. While you’ll most often use / as y ...
分类:
Web程序 时间:
2016-09-26 15:52:45
阅读次数:
158
Angular 2’s ActivatedRoute allows you to get the details of the current route into your components. Params on the ActivatedRoute are provided as strea ...
分类:
其他好文 时间:
2016-09-26 06:30:03
阅读次数:
169
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 ...
分类:
其他好文 时间:
2016-09-25 22:28:28
阅读次数:
594
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 ...
分类:
其他好文 时间:
2016-09-25 22:11:00
阅读次数:
237
Angular 2 navigation is configured using the routerLink directive. The routerLink directive behaves like an href’s you are familiar with, but it hooks ...
分类:
其他好文 时间:
2016-09-25 06:11:01
阅读次数:
168
// <![CDATA[ /* @licstart The following is the entire license notice for the JavaScript code in this tag. Copyright (C) 2012-2013 Free Software Founda ...
分类:
其他好文 时间:
2016-09-24 23:38:36
阅读次数:
395