Reputation: 3
Please have you any idea how to get _value
from:
I have this function:
jobsLength(){
const jobslength:any;
jobslength=this.searchLogic.items$
console.log(jobslength)
};
Upvotes: 0
Views: 7913
Reputation: 51125
You need to subscribe to the items$
Observable to get the data.
jobsLength() {
this.searchLogic.items$.subscribe((value: any[]) => {
let jobs: any[] = value;
console.log(jobs);
console.log(jobs.length);
});
}
Upvotes: 3