vendredi 17 juin 2016

ember js cannot get data from route to template

this.store.findRecord('book',params.id).then(function(tag){
            tag.get('relatedBook').then(function(related){
                var items = related.get('related'); //items = '1,2,3'
                return related.store.query('book', {filter:{id: items} });
            });
        }),

Console still return localhost:8000/books?filter[id]=1,2,3, There still data in json api but When I call in templates, it returns nothing?

What is the problem here?




Aucun commentaire:

Enregistrer un commentaire