Quantcast
Viewing all articles
Browse latest Browse all 4826

DS.PromiseArray retrieve object

@Alessio_Varalta wrote:

Hi I have a landing page with and in the model route i have

model(){ var tmpModel = {}; return this.store.query('user', {filter: {user: this.get('auth.currentUser.id')}}); tmpModel.user=user; console.log(tmpModel); return tmpModel;

},

who in the view hbs can i retrieve the user, if i make

{{model.user.length}} this is 1 but {{model.user.email}} ecc...not print

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles