AngularDart: ng-repeat filter update

I am trying to apply a filter to ng-repeat

. But it doesn't update when my model changes.

<th ng-repeat='column in cmp.columns | filter {visible:"true"}'>
  {{column.title}}
</th>

      

I am getting columns through the future in my component, if that matters.

cols.getColumns().then ((columns){
  this.columns = columns;
})

      

+3


source to share


1 answer


Current workaround

moving filter logic to my component:



List get visibleColumnNames => columns.where((col) => col['visible'] == true)
  .map((col) => col['name']).toList();

      

I would like to know how to do this in a template with a filter.

+1


source







All Articles