Is it possible to have multiple router.js for an Ember app?
By default one router.js will have
import Ember from 'ember';
import config from '../../config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
export default Router.map(function() {
this.resource('sampleroute');
});
and other router.js will have
import Ember from 'ember';
import config from '../../config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
export default Router.map(function() {
this.resource('sampleroute2');
});
All I need is to make Ember application to read my second router(router2.js) which by default reads the default router.js to set up routes.
Aucun commentaire:
Enregistrer un commentaire