In my ember js application, I have a template sample.hbs and inside that I have a component component1.hbs. I have flag in my model in sample.js and that flag should be available in the component1.js. Value of model is set by making an ajax call(calling a webservice) in sample.js aftreModel() function. Since ajax call is happening after component1.hbs is rendered, I was not available with the flag's value when page is loaded. My question is that where I can put the ajax call instead of aftreModel() function so that I can get the flag value in my component1.js ?
Aucun commentaire:
Enregistrer un commentaire