import ngModule from '../../module'; import Field from '../field'; export default class Textarea extends Field { constructor($element, $scope, $compile) { super($element, $scope, $compile); let html = ``; this.input = this.$compile(html)($scope)[0]; } set rows(value) { this.input.rows = typeof value == 'number' && value > 0 ? value : 3; } get rows() { return this.input.rows; } } ngModule.vnComponent('vnTextarea', { controller: Textarea, bindings: { rows: '