import class and call static method with es6 modules with babel transpiler

You have two options:

  1. Export EmberReflux like you are doing:

    export { EmberReflux };
    

    and then import it like:

    import { EmberReflux } from '../utils/ember-reflux';
    
  2. Use default when exporting:

    export default EmberReflux;
    

    and import it (like you are doing):

     import EmberReflux from '../utils/ember-reflux';
    

In both cases you can then use your EmberReflux like:

EmberReflux.createActions();

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)