salix/modules/route/front/descriptor/index.js

23 lines
448 B
JavaScript
Raw Normal View History

2019-03-22 10:07:44 +00:00
import ngModule from '../module';
class Controller {
set quicklinks(value = {}) {
this._quicklinks = Object.assign(value, this._quicklinks);
}
get quicklinks() {
return this._quicklinks;
}
}
Controller.$inject = ['$http', '$state'];
ngModule.component('vnRouteDescriptor', {
template: require('./index.html'),
bindings: {
route: '<',
quicklinks: '<'
},
controller: Controller
});