lundi 18 juillet 2016

How to send to send get request to api in Ember cli

createData: function(){
    var record = this.get('store').createRecord('ot-list');
    this.set('model', record);
 }.on('init');

Error while perform action on button,i want to creating record on model and i want to send post request to api.bUt it gives error 'createRecord' is not defined.what should i do...please help me out




Aucun commentaire:

Enregistrer un commentaire