Skip to content
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
ngdart opened this issue Feb 20, 2014 · 1 comment
Closed

editing values in ng-repeat over primitives #598

ngdart opened this issue Feb 20, 2014 · 1 comment

Comments

@ngdart
Copy link

ngdart commented Feb 20, 2014

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?

@mhevery
Copy link
Contributor

mhevery commented Apr 9, 2014

fixed in: 03f0a4c

@mhevery mhevery closed this as completed Apr 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants