ember-slider
Version:
27 lines (20 loc) • 638 B
JavaScript
export default startApp;
import Ember from "ember";
import Application from "../../app";
import Router from "../../router";
import config from "../../config/environment";
function startApp(attrs) {
var App;
var attributes = Ember.merge({}, config.APP);
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
Router.reopen({
location: "none"
});
Ember.run(function () {
App = Application.create(attributes);
App.setupForTesting();
App.injectTestHelpers();
});
App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL"
return App;
}