I have an array and I want to filter to get to a record that matches some other value so I'm doing this:
jobsCtrl.matchList | filter: {job_id: job.id}
Where the controller's matchList looks like this:
[{ job_id: 1, prop: 5},{job_id: 2, prop: 10 } ... ]
If I just output it like this it works: { job_id: 1, prop: 5}
But I want to access the prop property in the DOM, I would expect this to work:
{{ (jobsCtrl.matchList | filter: {job_id: job.id}).prop }}
But that just reads blank, is there a way to do this?
Thanks!