open-nomad/ui/app/routes/freestyle.js

19 lines
460 B
JavaScript
Raw Normal View History

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