Can i solve this problem, or it's a bad way with ng-repeat?
The markup:
<div ng-repeat="car in Ctrl.cars">
<span>{{::car.color}}</span>
<span>{{::car.type}}</span>
<input ng-change="{{::car.function}}"/>
</div>
The js:
scope.cars = [
{color: 'red', type: 'Ferrari', function:''},
{color: 'green', type: 'Subaru', function: scope.doSomething},
];
I would like to run doSomething() on input change. You know a solution to this?
Thanks!