When I tried using the below syntax, it doesn't filter or doesn't exclude:-
ng-repeat = "option in vm.eesSettingIdOptions | filter : { SettingID: '!vm.eesAdminSetupData.SettingID'}
but it do works when I change it to:-
ng-repeat = "option in vm.eesSettingIdOptions | filter : { SettingID: '!51'}
they should be the same isn't it?
you should put your variable out of the quotes:
ng-repeat="option in vm.eesSettingIdOptions | filter:{ SettingID: '!' + vm.eesAdminSetupData.SettingID}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With