Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Iterating through the model

$
0
0

@tom1 wrote:

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles