This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
editing values in ng-repeat over primitives #598
Closed
Description
I'm working on Chapter 6 of the AngularDart tutorial (https://angulardart.org/tutorial/08-ch06-view.html). I'm trying to create the recipe edit component. I can do everything but edit the ingredients list. In the HTML file, I have:
<ul>
<li ng-repeat="ingredient in ctrl.recipe.ingredients">
<div>
<img ng-click="ctrl.remove(ingredient)" class="icon" src="delete.png" />
<input type="text" size="50" ng-model="ctrl.recipe.ingredients[$index]" />
</div>
</li>
<li><img ng-click="ctrl.addIngredient()" class="icon" src="add.png" /></li>
</ul>
This allows me to add, remove and edit ingredients. Unfortunately, every key press in the input field causes it to lose focus. Apparently there was a fix for this in AngularJS: angular/angular.js#1661
Is there a plan to port this fix to AngularDart?
Metadata
Metadata
Assignees
Labels
No labels