-
-
Save bantic/b86787ed315c5ef98323 to your computer and use it in GitHub Desktop.
example app.js including torii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global require */ | |
import Resolver from 'ember/resolver'; | |
import loadInitializers from 'ember/load-initializers'; | |
Ember.MODEL_FACTORY_INJECTIONS = true; | |
var App = Ember.Application.extend({ | |
modulePrefix: 'myapp', // TODO: loaded via config | |
Resolver: Resolver | |
}); | |
// Injects 'torii' property on all routes, adds | |
// torii's initializers | |
require('torii/load-initializers')['default'](); | |
loadInitializers(App, 'myapp'); | |
export default App; |
raksonibs
commented
Aug 21, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment