摘要: To use http, we need to import the HTTP_PROVIDER, so that we can inject http to other component: simple-request.ts: 阅读全文
posted @ 2016-03-25 04:02 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: Handling state with Typescript enums, instead of booleans, is preferred because:- Enums are more readable- Enums can have as many states as you need w 阅读全文
posted @ 2016-03-25 00:31 Zhentiw 阅读(240) 评论(0) 推荐(0)