Rendering Coordinates On Leaflet Map View Using Ajax In Ember
[]I am trying to feed data (via an ajax call to a json file) to both a handlebars template and a leaflet map. With my current setup, the data reaches my handlebars template just fi
Solution 1:
This is the same answer as the other question,
The view is backed by a controller, so you would do this.get('controller')
to get the controller which is backed by your collection which if you wanted to get the collection (which isn't necessary since you can iterate the controller) you could do this.get('controller.model')
.
var controller = this.get('controller');
controller.forEach(function(item){
console.log(item.get('title'));
});
http://emberjs.jsbin.com/OxIDiVU/373/edit
Post a Comment for "Rendering Coordinates On Leaflet Map View Using Ajax In Ember"