mardi 2 juin 2015

How to use both Firebase and Cordova adapters without duplicating export

I'm having trouble figuring out how I can use both Firebase and Cordova adapters in my application.js. It's exporting twice right now and giving me a build error.

Maybe I need to have them in different files but I don't know where to put them.

// app/adapters/application.js
import DS from 'ember-data';
import config from '../config/environment';




import Firebase from 'firebase';
import FirebaseAdapter from 'emberfire/adapters/firebase';

export default FirebaseAdapter.extend({
  firebase: new Firebase(config.firebase)
});




export default DS.ActiveModelAdapter.extend({
  host: config.apiUrl
});

Has anyone encountered this problem?




Aucun commentaire:

Enregistrer un commentaire