Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ember-ajax with ember-fetch for Octane #18

Open
betocantu93 opened this issue Jan 21, 2019 · 0 comments
Open

Replace ember-ajax with ember-fetch for Octane #18

betocantu93 opened this issue Jan 21, 2019 · 0 comments

Comments

@betocantu93
Copy link

Ember octane blueprint comes without jquery, so ember-ajax is no longer needed. One option is to use ember-fetch instead.

Currently to use ember-fetch with ember-data, you have to use the AdapterFetch mixin from ember-fetch.

   //src/data/models/application/adapter.js

   import DS from 'ember-data';
   const { Adapter } = DS;
   import AdapterFetch from 'ember-fetch/mixins/adapter-fetch';

   const AdapterWithFetch = Adapter.extend(AdapterFetch);

   export default class ApplicationAdapter extends AdapterWithFetch {

   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant