vendredi 3 juin 2016

Issue with generating models using Ember CLI and Ember-localstorage-dapter

I am learning Ember and have been watching the Microsoft videos at the following URL. http://ift.tt/1t7KDJd

I was making good progress until the generated Models and ended up with import DS from and then I read a post and found out that is the new behavior. I was able to modify the model code accordingly and get mine to work. Phew...

I then hit around 7:00 into the above video when they start to implement Ember-localstorage-adapter and the Git instructions are completely different than whats on Git today even though the version is the same. I only have the two models and when I look at the git page for the adapter I see this:

// app/serializers/application.js
import { LSSerializer } from 'ember-localstorage-adapter';

export default LSSerializer.extend();

// app/adapters/application.js
import LSAdapter from 'ember-localstorage-adapter';

export default LSAdapter.extend({
namespace: 'yournamespace'
});

I don't have app/serializers or adapters so I'm totally lost.

I'm really hoping I don't have to abort this video as there aren't really any other up-to-date videos out there on Ember. I've tried a bunch of others and they were dated or ill-suited for a beginner such as myself.

Thanks for the help!




Aucun commentaire:

Enregistrer un commentaire