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.


Comments

Popular posts from this blog

Decompiling and debugging .Net dll files

Apache ActiveMQ 5 with .Net Core 3.1 and C#

Firebase with.Net Core and C#