上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 498 下一页
摘要: Previously we have 'OpaqueToken', but it is DEPRECATED. The new one is called 'InjectionToken'. The difference between OpaqueToken is for InjectionTok 阅读全文
posted @ 2017-05-11 01:35 Zhentiw 阅读(911) 评论(0) 推荐(0)
摘要: directive: test: 阅读全文
posted @ 2017-05-10 02:27 Zhentiw 阅读(389) 评论(0) 推荐(0)
摘要: For example, when testing container component we might import lots of children components, but we didn't actually testing those children components. S 阅读全文
posted @ 2017-05-09 23:54 Zhentiw 阅读(773) 评论(0) 推荐(0)
摘要: The main idea for testing contianer component is to make sure it setup everythings correctlly. Call the onInit() lifecycle first, then the variables h 阅读全文
posted @ 2017-05-09 23:49 Zhentiw 阅读(322) 评论(0) 推荐(0)
摘要: Component: Test: 阅读全文
posted @ 2017-05-09 23:16 Zhentiw 阅读(673) 评论(0) 推荐(0)
摘要: Using pseudo-elements like ::before and ::after we can draw some simple icons without having using image assets which can help reduce the number of re 阅读全文
posted @ 2017-05-08 05:12 Zhentiw 阅读(238) 评论(0) 推荐(0)
摘要: A solid naming convention makes it less likely to run into naming conflicts and helps establish a semantic pattern that is easier for a team to follow 阅读全文
posted @ 2017-05-08 00:42 Zhentiw 阅读(220) 评论(0) 推荐(0)
摘要: Component: Test @Input & @Output: 阅读全文
posted @ 2017-05-06 03:33 Zhentiw 阅读(316) 评论(0) 推荐(0)
摘要: Writing similar classes with minor variations, like utility classes, can be a pain to write and update. Sometimes just a single character is the only 阅读全文
posted @ 2017-05-06 03:15 Zhentiw 阅读(282) 评论(0) 推荐(0)
摘要: Great improvements and optimizations can be made to the output of bundled code. Prepack provides the ability to optimize code at build-time, producing 阅读全文
posted @ 2017-05-05 18:37 Zhentiw 阅读(310) 评论(0) 推荐(0)
上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 498 下一页