Within my project, I am working with two types of objects: 'ing' containing fields 'id' and 'field', and 'fObj' containing a field named 'contain'.
Using ng-repeat, I am trying to display only those 'ing' objects where ing.id is included in fObj.contain.
For example:
ing=[{id: 1,field: value},{id:2, field: othervalue},{id:3, field: cat}];
fObj={field1: value1, field: value2, contain: ':1:3:'};
With the given contain value, I aim to display only ing objects with id=1 and id=3.
Although I have tried converting numbers to strings, I am still unable to achieve the desired result.
I have experimented with custom filters, but none have yielded successful outcomes.
If you have any suggestions on how to solve this issue, I would greatly appreciate it.
Thank you.