lundi 20 mars 2017

how to reload hasMany relationship data in ember data 2.8

when first time calling model.get('list') its fetching record from server but second time its fetching from store but i want always response from server.

I am using

Ember js 2.8.3

Ember data 2.8.1

my model is like below

model:function()
{   
    var model = this.modelFor('view').get('list');
    if(model.get('content.isLoaded'))
    {
        return model.reload();
    }
    return model;
}

same model was working as i mention above in ember data 1.13.8

Thanks in advance for help.




Aucun commentaire:

Enregistrer un commentaire