摘要: State is a lazy datatype and as such we can combine many simple transitions into one very complex one. This gives us a lot of control over how our sta 阅读全文
posted @ 2019-01-08 21:25 Zhentiw 阅读(130) 评论(0) 推荐(0)
摘要: It's important that our users enjoy using our application or website. One way we can make it happen is by adding microinteractions to subtly reward ou 阅读全文
posted @ 2019-01-08 20:42 Zhentiw 阅读(227) 评论(0) 推荐(0)
摘要: For example we have a component: And a driective: We want to get the driective instant inside the component code, we can use @ViewChild: Then we can a 阅读全文
posted @ 2019-01-08 16:01 Zhentiw 阅读(240) 评论(0) 推荐(0)
摘要: One integer takes 32bit in memory, 1 byte = 8bits, therefore one integer takes 4 bytes. Now let's assume we have an array: [1,2,3] 4bytes . 4bytes . 4 阅读全文
posted @ 2019-01-08 03:50 Zhentiw 阅读(107) 评论(0) 推荐(0)