23 lines
448 B
JavaScript
23 lines
448 B
JavaScript
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
|
|
});
|