上一页 1 ··· 330 331 332 333 334 335 336 337 338 ··· 477 下一页
摘要: 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 阅读(326) 评论(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 阅读(285) 评论(0) 推荐(0)
摘要: Install: Basic example: Advanced example: Component: 阅读全文
posted @ 2017-10-31 19:31 Zhentiw 阅读(486) 评论(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 阅读(630) 评论(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 阅读(279) 评论(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 阅读(369) 评论(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 阅读(240) 评论(0) 推荐(0)
摘要: For example, we want to use moment.js inside our ReasonML code. What we can do is create a module file: Using it inside component: 阅读全文
posted @ 2017-10-28 01:52 Zhentiw 阅读(345) 评论(0) 推荐(0)
摘要: Register a account on https://console.dialogflow.com/api-client/ "Creat a intent" -- you can custom your message here. "Small Talks" -- the default me 阅读全文
posted @ 2017-10-24 03:38 Zhentiw 阅读(895) 评论(1) 推荐(0)
摘要: The upload class will be used in the service layer. Notice it has a constructor for file attribute, which has a type of File. This will allows us to i 阅读全文
posted @ 2017-10-22 01:57 Zhentiw 阅读(804) 评论(0) 推荐(0)
上一页 1 ··· 330 331 332 333 334 335 336 337 338 ··· 477 下一页