Need help with iterating through a model. I am getting the model using this.get(‘buildings’); in a component. However none of the iteration methods seems to be working (tried forEach, filter etc). Its not throwing an error either. I must be doing something really wrong.
building = this.get(‘buildings’); building.forEach(function(item){ console.log(item.get(‘name’)); },building);
Can you pls check whats wrong?