Thank you all guys. I will now select one detailed answer and close this up.
see the code below, it's fairly straight forward
<tr ng-repeat="record in records track by record.id">
<td><input type="checkbox"/></td>
<td ng-repeat="(name, value) in record" ng-hide="name == 'id'">
<portia-td value="{{value}}"></portia-td>
</td>
</tr>
Here is the directive define
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
value: '='
},
controller: function($scope) {
$scope.input = {show: false, value: $scope.value};
},
templateUrl: "td.html"
}
Why this produce error? but when change the scope set back to '@', it works again.
value="value"instead ofvalue="{{value}}"since you're binding to the model and not the interpolation of it.