上一页 1 ··· 364 365 366 367 368 369 370 371 372 ··· 491 下一页
摘要: Content is what is passed as children. View is the template of the current component. The view is initialized before the content and ngAfterViewInit() 阅读全文
posted @ 2017-02-19 23:40 Zhentiw 阅读(2330) 评论(0) 推荐(0)
摘要: *The children element which are located inside of its template of a component are called *view children *. On the other hand, **elements which are use 阅读全文
posted @ 2017-02-19 23:31 Zhentiw 阅读(710) 评论(0) 推荐(0)
摘要: We have looked at @ContentChild in article(http://www.cnblogs.com/Answer1215/p/6414657.html). Now let's how to query multi children by using @ContentC 阅读全文
posted @ 2017-02-19 01:34 Zhentiw 阅读(1210) 评论(0) 推荐(0)
摘要: @ContentChild normally works with ngAfterContentInit lifecycle. @ContentChild is used for looking into child component's props. For example, we a app 阅读全文
posted @ 2017-02-19 01:12 Zhentiw 阅读(1274) 评论(0) 推荐(0)
摘要: For example there is tow form compoennts on the page, and what we want to do is reusing the form component. Make to tow form behave differently, we ca 阅读全文
posted @ 2017-02-19 00:48 Zhentiw 阅读(410) 评论(0) 推荐(0)
摘要: We often want to check if an array includes a specific item. It's been common to do this with the Array.prototype.indexOf method, but now we have a si 阅读全文
posted @ 2017-02-17 18:58 Zhentiw 阅读(223) 评论(0) 推荐(0)
摘要: Handling your logic with composable functions makes your code declarative, leading to code that's easy to read and easy to test. Breaking that up to w 阅读全文
posted @ 2017-02-17 18:50 Zhentiw 阅读(436) 评论(0) 推荐(0)
摘要: Learn to install JavaScript modules that include native code. Some React Native modules include native code for Android and/or iOS in addition to Java 阅读全文
posted @ 2017-02-16 02:28 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: In this lesson we'll take some existing code and refactor it using some functions from the Ramda library, most notably, compose and converge. When we' 阅读全文
posted @ 2017-02-15 17:42 Zhentiw 阅读(349) 评论(0) 推荐(0)
摘要: Learn to write components that render differently on iOS and Android, but present the same API. First, we'll use the Platform module to change behavio 阅读全文
posted @ 2017-02-15 02:15 Zhentiw 阅读(265) 评论(0) 推荐(0)
上一页 1 ··· 364 365 366 367 368 369 370 371 372 ··· 491 下一页