Issue with AngularJs filter in ng-repeat
When using a filter inside ng-repeat I found a problem where it behaving strange and showing the same value in two location even I filtered it using javascript logic.
Then I found out the problem is with the text of the label.
AngularLogic:
ng-repeat="item in customRole.userActions | filter:item.ActionGroup='Chat'"
What I'm getting from the C#:
[Description("Create Ticket From Chat")]
Since the description is containing the text 'Chat' it will filter the wrong actions and show them in wrong places.
Then I found out the problem is with the text of the label.
AngularLogic:
ng-repeat="item in customRole.userActions | filter:item.ActionGroup='Chat'"
What I'm getting from the C#:
[Description("Create Ticket From Chat")]
Since the description is containing the text 'Chat' it will filter the wrong actions and show them in wrong places.
Comments
Post a Comment