33 lines
631 B
JavaScript
33 lines
631 B
JavaScript
|
import ngModule from '../module';
|
||
|
|
||
|
class Controller {
|
||
|
constructor($state) {
|
||
|
this.$state = $state;
|
||
|
this._quicklinks = {};
|
||
|
}
|
||
|
|
||
|
set quicklinks(value = {}) {
|
||
|
this._quicklinks = Object.assign(value, this._quicklinks);
|
||
|
}
|
||
|
|
||
|
get quicklinks() {
|
||
|
return this._quicklinks;
|
||
|
}
|
||
|
|
||
|
quicklinkGo(state, params) {
|
||
|
this.$state.go(state, params);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$state'];
|
||
|
|
||
|
ngModule.component('vnClaimDescriptor', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
bindings: {
|
||
|
claim: '<',
|
||
|
tags: '<',
|
||
|
quicklinks: '<'
|
||
|
}
|
||
|
});
|