I am using the following code in my router in the Model hook.
const listings = this.store.peekAll('listings');
console.log(listings); // returns a class with a length of 6
console.log(listings.length); // return 0
I am trying to find a way to access the length in the console. I have read its not available in the console but I'm sure there must be a way.
Aucun commentaire:
Enregistrer un commentaire