摘要: In previous artical, we introduce the how to use *ngFor. The limitation for previous solution to display all the heros is we hard cord all heros in ou 阅读全文
posted @ 2016-09-14 23:13 Zhentiw 阅读(1468) 评论(0) 推荐(0)
摘要: heros.ts: here we can also use: heroes.component.css: 阅读全文
posted @ 2016-09-14 16:11 Zhentiw 阅读(7785) 评论(0) 推荐(0)
摘要: First, What is directive, what is the difference between component and directive. For my understanding, component is something like 'canvas', 'form', 阅读全文
posted @ 2016-09-14 04:57 Zhentiw 阅读(974) 评论(0) 推荐(0)
摘要: The application is simple, to build a color picker: When click the rect box, it will check the color value below and title color will also change. col 阅读全文
posted @ 2016-09-14 01:44 Zhentiw 阅读(2085) 评论(0) 推荐(0)