我是 Angular 1.6 组件架构的新手,遇到了一个简单的问题。我有一个对象,其中有两个属性,src
即. 现在,我想要的是在 html 中绑定 name 属性。name
age
The following is the code:
test.js:-
$ctrl.src = {
details: [
{ Id: 1, Name: "Test1", Address: "Add1" },
{ Id: 2, Name: "Test2", Address: "Add2" }
]
};
test.html:-
<cell-component>Hi {{Name}}</cell-component>
Expected Output:-
Hi test