open-nomad/ui/app/routes/freestyle.js
2018-01-17 09:04:00 -08:00

19 lines
467 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.get('emberFreestyle');
return emberFreestyle.ensureHljs().then(() => {
return RSVP.all([
emberFreestyle.ensureHljsLanguage('handlebars'),
emberFreestyle.ensureHljsLanguage('htmlbars'),
]);
});
},
});