0
에 렌더링되지 나는 사람의 내 컬렉션이 지침에서 렌더링되지 않는 이유를 알고 싶습니다각도 이유 컬렉션 템플릿
http://codepen.io/agustincba/pen/vgOLVV
modulo.directive('personRenderer', function(){
return {
restrict: 'E',
template: `
<table>
<thead>
<tr>
<td>Nombre</td>
<td>DNI</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="person in personas">
<td>{{person.name}}</td>
<td>{{person.dni}}</td>
</tr>
</tbody>
</table>
`,
replace: true,
scope: {
personas: '='
},
controller: function($scope)
{
console.log($scope.personas);
}
}
});
Dipak. 감사합니다. 많은 도움을! –