上一页 1 ··· 400 401 402 403 404 405 406 407 408 ··· 499 下一页
摘要: Angular 2 templates have a special let syntax that allows you to define and pass a context when they’re being generated. We pass in an Object "desc: G 阅读全文
posted @ 2016-09-23 20:52 Zhentiw 阅读(312) 评论(0) 推荐(0)
摘要: Angular 2 Components have templates, but you can also create templates inside of your templates using Angular 2 ViewContainer’s createEmbeddedView for 阅读全文
posted @ 2016-09-23 20:39 Zhentiw 阅读(461) 评论(0) 推荐(0)
摘要: After the original order is set, you can still leverage methods on the Angular 2 ViewContainer to reorder the components. This is especially helpful w 阅读全文
posted @ 2016-09-23 19:23 Zhentiw 阅读(578) 评论(0) 推荐(0)
摘要: By default, when you generate components, they will simply be added to the page in order, one after another. Angular 2 provides methods on the ViewCon 阅读全文
posted @ 2016-09-23 19:00 Zhentiw 阅读(544) 评论(0) 推荐(0)
摘要: When you generate Angular 2 components, you’re still able to access the component instance to set properties and invoke methods from the component cla 阅读全文
posted @ 2016-09-23 16:55 Zhentiw 阅读(488) 评论(0) 推荐(0)
摘要: You can generate Angular 2 components using a combination of ViewContainer and ComponentFactory, but you must always remember to add the components yo 阅读全文
posted @ 2016-09-23 03:33 Zhentiw 阅读(645) 评论(0) 推荐(0)
摘要: ElementRef: In Angular2 Doc, it suggest to "avoid" using ElementRef. It access DOM directly, can easily be attacked. If we log out the ElementRef, we 阅读全文
posted @ 2016-09-23 02:58 Zhentiw 阅读(4928) 评论(0) 推荐(0)
摘要: You have complete control over the elements you nest inside of your component instance by using selectors to access and rearrange them. Selecting allo 阅读全文
posted @ 2016-09-22 14:47 Zhentiw 阅读(339) 评论(0) 推荐(0)
摘要: You can place content inside of the instance of your component element then manage it inside of the component’s template using ng-content. This proces 阅读全文
posted @ 2016-09-21 14:40 Zhentiw 阅读(229) 评论(0) 推荐(0)
摘要: Each Angular 2 Component can have its own styles which will remained contained inside the component. These isolated styles allow you to add whichever 阅读全文
posted @ 2016-09-21 03:33 Zhentiw 阅读(593) 评论(0) 推荐(0)
上一页 1 ··· 400 401 402 403 404 405 406 407 408 ··· 499 下一页