dimanche 22 mai 2016

How to push an object into a one dimensional array and how to get individual item in array using ember.js

Here is my code, I want to get userData details it is in the form of array,so i push that object into results array, am getting userData items into my result array but i can't access the individual item ,and that i want to display in my template using , help me to find this.

enter code here

addSuccess: function(userData) {
       Ember.Logger.log('user address data',userData); 
       var results = [];
       results.push(userData);
       this.set('result',results);
         Ember.Logger.log('result data          result',this.get('result.addresses.city'));
      this.send('btnClose');
      }




Aucun commentaire:

Enregistrer un commentaire