I am using angular $filter to take non matching objects from two string.
i have written below code to iterate .
angular.forEach(this.members, function (value: any, index: any) {
var person = this.$filter('filter')(this.allPersonnel, { Id: value.Member.Id })[0];
console.log(person);
this.validPerson.push(person); // Filter
});
As you can see i am not not able to add "Not equal to" condition. I tried with "Id:'!value.Member.Id'"
but it is considering as string.
Could you guys please tell me a way to do this. I am using Typescript angular.