阅读背景:

设计原则,将对象传递给组件

来源:互联网 

I am designing a page that shows a list of people and it displays each person as a card. So I wanted to create a directive to handle that, to isolate the html code that shows one person in one directive. Since I already have the list and what's needed to show one person I wanted the directive to just receives an object that has the person's information and knows how to display that properly. My friends on the other hand think that each directive should just get the id of the person and call the server to get the information. What are your thoughts?I am designing a page that shows a list of peop




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: