Skip to content
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.

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

@benbro

Description

@benbro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions