mercredi 30 décembre 2015

How declare a constants file with Ember.js

how would one create a constants class or helper in Ember?

something like create a constants.js and add

export const testme = 3;
export const testtoo = 4;

then in a controller I'd

import constants from 'constants';




Aucun commentaire:

Enregistrer un commentaire