24 lines
478 B
JavaScript
24 lines
478 B
JavaScript
import ngModule from '../../module';
|
|
|
|
export default class Controller {
|
|
constructor($element) {
|
|
this.$element = $element;
|
|
this.input = $element[0].querySelector('input');
|
|
}
|
|
|
|
set disabled(value) {
|
|
this.input.disabled = value;
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$element'];
|
|
|
|
ngModule.component('vnSubmit', {
|
|
template: require('./submit.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
label: '@?',
|
|
disabled: '<?',
|
|
}
|
|
});
|