上一页 1 ··· 322 323 324 325 326 327 328 329 330 ··· 492 下一页
摘要: In Single Page Apps we're used to fetch the data on event callbacks. That disables the capacity to use the URL to share it to someone else and get to 阅读全文
posted @ 2017-11-06 18:01 Zhentiw 阅读(317) 评论(0) 推荐(0)
摘要: For example, what you want to do is navgiate from current item to next or previous item. In your component, you can dispatch action like this: So here 阅读全文
posted @ 2017-11-03 04:22 Zhentiw 阅读(551) 评论(0) 推荐(0)
摘要: AuthService: Guard: 阅读全文
posted @ 2017-11-02 04:01 Zhentiw 阅读(756) 评论(0) 推荐(0)
摘要: import {Injectable} from '@angular/core'; import {Skill} from '../models/skills'; import {AuthService} from '../../auth/services/auth.service'; import 'rxjs/add/operator/do'; import 'rxjs/add/operat... 阅读全文
posted @ 2017-11-02 03:04 Zhentiw 阅读(296) 评论(0) 推荐(0)
摘要: Also check: directive for form validation User input validation is a core part of creating proper HTML forms. Form validators not only help you to get 阅读全文
posted @ 2017-11-01 19:49 Zhentiw 阅读(255) 评论(0) 推荐(0)
摘要: Install: Basic example: Advanced example: Component: 阅读全文
posted @ 2017-10-31 19:31 Zhentiw 阅读(468) 评论(0) 推荐(0)
摘要: Always treat Router as the source of truth When we use Ngrx, we can see that we will use a "StoreRouterConnectingModule" from the example app. What it 阅读全文
posted @ 2017-10-30 21:43 Zhentiw 阅读(599) 评论(0) 推荐(0)
摘要: Most of time, we get used to use class name as a selector in the test. But one problem for this is classname is used for styling, when we also use it 阅读全文
posted @ 2017-10-30 18:19 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: /* list of strings */ let _ = ["example-1", "example-2", "example-3"]; /* Array of strings */ let _ = [|"example-1", "example-2", "example-3"|]; /* Stating the type of a Reason record */ type event... 阅读全文
posted @ 2017-10-28 01:57 Zhentiw 阅读(351) 评论(0) 推荐(0)
摘要: // ::country is named param // ::country=?: which make it optional // because we make ::country=? optional named param, we may pass in or may not pass in // we need use '()' --> (): string => , which... 阅读全文
posted @ 2017-10-28 01:55 Zhentiw 阅读(218) 评论(0) 推荐(0)
上一页 1 ··· 322 323 324 325 326 327 328 329 330 ··· 492 下一页