Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Use arrayify formatter instead of keys.toList() #120

Open
benbro opened this issue May 12, 2014 · 0 comments
Open

Use arrayify formatter instead of keys.toList() #120

benbro opened this issue May 12, 2014 · 0 comments

Comments

@benbro
Copy link

benbro commented May 12, 2014

Using the arrayify formatter in the template instead of the _categories list will simplify the code:

<span ng-repeat="category in cmp.categoryFilterMap | arrayify">
  <label>
    <input type="checkbox"
     ng-model="cmp.categoryFilterMap[category.key]">{{category.key}}
  </label>
</span>

https://github.com/angular/angular.dart.tutorial/blob/master/Chapter_06/lib/component/search_recipe_component.html#L10

https://github.com/angular/angular.dart.tutorial/blob/master/Chapter_06/lib/component/search_recipe_component.dart#L20

Arrayify formatter:
dart-archive/angular.dart@d2780f8

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

1 participant