摘要: You need to define a <template> to be able to use it elsewhere in your app as a TemplateRef. You can store these TemplateRefs in a Service and then ac 阅读全文
posted @ 2017-01-16 21:48 Zhentiw 阅读(320) 评论(0) 推荐(0)
摘要: Just like passing in an array to *ngFor, you can pass in any value into your structural directive so that it can render templates based on those value 阅读全文
posted @ 2017-01-16 19:44 Zhentiw 阅读(217) 评论(0) 推荐(0)
摘要: Just like in *ngFor, you're able to pass in data into your own structural directives. This is done by declaring the variable using a let statement the 阅读全文
posted @ 2017-01-16 19:18 Zhentiw 阅读(216) 评论(0) 推荐(0)