摘要: TypeScript has 'interface' and 'type', so when to use which? It is recommended that to use 'interface' to define the props that obj should have. 'type 阅读全文
posted @ 2017-03-06 19:48 Zhentiw 阅读(206) 评论(0) 推荐(0)
摘要: I can use <tamplete> syntax and a entry component as a container to create a dynamic component. Notice it will create a empty div as a placeholder in 阅读全文
posted @ 2017-03-06 19:30 Zhentiw 阅读(1239) 评论(0) 推荐(0)
摘要: To create a dynamic template, we need to a entry component as a placeholder. Then we can use entry component to create a new Tamplete into it. As we c 阅读全文
posted @ 2017-03-06 19:11 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: Learn how to create a table using the most widely-used data types (serial, varchar, integer, float, boolean, and date), and the most necessary constra 阅读全文
posted @ 2017-03-06 17:48 Zhentiw 阅读(156) 评论(0) 推荐(0)
摘要: For example you have a TS app: The problem for this piece of code is that, you can assign 'kobe' to null, or undefined. And compiler won't catch this 阅读全文
posted @ 2017-03-06 17:16 Zhentiw 阅读(257) 评论(0) 推荐(0)
摘要: The difference between sort, sortBy, sortWith is that: 1. sort: take function as args. 2. sortBy: take prop as args. 3. sortWith: take array of funcs 阅读全文
posted @ 2017-03-06 16:51 Zhentiw 阅读(754) 评论(0) 推荐(0)
摘要: To add a new app, first cd to the project. Then run: After that a new folder call 'scrumboard' will be created in you applicaiton folder. Now cd to sc 阅读全文
posted @ 2017-03-06 02:36 Zhentiw 阅读(222) 评论(0) 推荐(0)