Hello
Am looking for the replacement of $.each in framework 3.0 but am getting
TypeError: json.each is not a function
I have followed this question but it seems its not working for me @nolimits4web
This is my source code.
//
var $ = this.$;
var app = this.$app;
var router = this.$router;
app.request({
url: "pages/countries.json",
success: function(json) {
console.log(json); // this will show the info it in firebug console
var html_countries = '<option value=""></option>';
/*
$.each(function(value, key) {
html_countries += '<option value="' + value[0] + '">' + key + '</option>';
})
*/
json.each(function(v,i) {
console.log(v);
});
$('#country').html(html_countries);
}
});