上一页 1 ··· 350 351 352 353 354 355 356 357 358 ··· 494 下一页
摘要: 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 阅读(321) 评论(0) 推荐(0)
摘要: Component: Test: 阅读全文
posted @ 2017-05-09 23:16 Zhentiw 阅读(670) 评论(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 阅读(219) 评论(0) 推荐(0)
摘要: Component: Test @Input & @Output: 阅读全文
posted @ 2017-05-06 03:33 Zhentiw 阅读(315) 评论(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 阅读(277) 评论(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)
摘要: Somtime 'async await' can have a bad effect on code proferemence. Let's take a look the below example: In the example, we are doing two await operatio 阅读全文
posted @ 2017-05-04 15:22 Zhentiw 阅读(262) 评论(0) 推荐(0)
摘要: This lesson shows how regular control flow statements such as try/catch blocks can be used to properly handle errors in asynchronous functions. Oftent 阅读全文
posted @ 2017-05-04 04:42 Zhentiw 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 350 351 352 353 354 355 356 357 358 ··· 494 下一页