tried, not working - Chaim27 commented on July 8th 19 at 11:27
Perhaps you meant ng-if="current_user.subscriptions.indexOf(season) != -1". It is not clear that this season in your code. - tanya.Bartell commented on July 8th 19 at 11:30
: season is an object of the user to the subscription - object array - Chaim27 commented on July 8th 19 at 11:33
: apparently, I have to guess what the object is. No, I couldn't. Give examples of real data to make a more substantive discussion, rather than attempting telepathy. - tanya.Bartell commented on July 8th 19 at 11:36
ng-if="current_user.subscriptions.some(subscription => subscription._id == season._id)" - but instead use the _id field, which can be compared. - tanya.Bartell commented on July 8th 19 at 11:39