Open onigetoc opened 7 years ago
I'm trying to change the groupBy dynamically with a Radio button but it do not work.
Radio button: ng-click="model.selected = 'sex'"
ng-click="model.selected = 'sex'"
Radio button 2: ng-click="model.selected = 'age'"
ng-click="model.selected = 'age'"
In the loop: ng-repeat="group in persons | groupBy: model.selected :'itemBygroup'"
ng-repeat="group in persons | groupBy: model.selected :'itemBygroup'"
If i click a Radio button, EX: age It will not refresh to the new model age
I just find how to make it work:
ng-repeat="group in persons | groupBy: model.selected :model.selected"
I'm trying to change the groupBy dynamically with a Radio button but it do not work.
Radio button:
ng-click="model.selected = 'sex'"
Radio button 2:
ng-click="model.selected = 'age'"
In the loop:
ng-repeat="group in persons | groupBy: model.selected :'itemBygroup'"
If i click a Radio button, EX: age It will not refresh to the new model age