vendredi 21 août 2015

Ember-restless with Ember 2.0

Problems I have with ember are related to ember-restless module I would like to use instead of ember-data(I have completely removed data module from my project). I am still learning ember so I am not sure if this has something with latest version, or with programming style, but I saw that in Ember 2.0 we would write

export default RL.Client.create({ adapter: App.RESTAdapter });

instead of

App.Client = RL.Client.create({ adapter: App.RESTAdapter });

but it seems that my client is then not recognised(if I write it in first way), as get request are made to localhost instead of url I specified in RESTAdapter class.

Second problem I have is that

import RL from 'ember-restless';

does not work for me, it says that module 'ember-restless' could not be found.

Any help would be appreciated, as I have been struggling with this for some time.




Aucun commentaire:

Enregistrer un commentaire