open-nomad/ui/app/routes/freestyle.js
2019-04-10 14:54:36 -07:00

19 lines
460 B
JavaScript

import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import RSVP from 'rsvp';
export default Route.extend({
emberFreestyle: service(),
beforeModel() {
let emberFreestyle = this.emberFreestyle;
return emberFreestyle.ensureHljs().then(() => {
return RSVP.all([
emberFreestyle.ensureHljsLanguage('handlebars'),
emberFreestyle.ensureHljsLanguage('htmlbars'),
]);
});
},
});