mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 18:19:53 +00:00
967afbaaf4
Moves all Route/model hook loading to use Outlet components which listen on route change.
16 lines
353 B
JavaScript
16 lines
353 B
JavaScript
import Route from 'consul-ui/routing/route';
|
|
|
|
export default Route.extend({
|
|
model: function() {
|
|
const parent = this.routeName
|
|
.split('.')
|
|
.slice(0, -1)
|
|
.join('.');
|
|
return this.modelFor(parent);
|
|
},
|
|
setupController: function(controller, model) {
|
|
this._super(...arguments);
|
|
controller.setProperties(model);
|
|
},
|
|
});
|