Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8c39920

Browse files
author
Nick Litwin
committed
Refactor
1 parent a3d1b77 commit 8c39920

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

app/directives/tc-textarea/tc-textarea.directive.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
placeholder: '@',
1313
characterCount: '=',
1414
characterCountMax: '@',
15-
commentValue: '='
16-
},
17-
link: function(scope) {
18-
console.log(scope);
15+
value: '='
1916
}
2017
}
2118
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
label.tc-textarea__label {{labelText}}
1+
label.tc-label.tc-textarea__label {{labelText}}
22
span.tc-textarea__char-count(ng-if="characterCount")
3-
span.tc-textarea__char-count--current {{commentValue.length || 0}}
3+
span.tc-textarea__char-count--current {{value.length || 0}}
44

55
span {{' / ' + characterCountMax}}
66

7-
textarea(placeholder="{{placeholder}}", ng-model="commentValue", maxlength="{{characterCountMax}}")
7+
textarea(placeholder="{{placeholder}}", ng-model="value", maxlength="{{characterCountMax}}")

0 commit comments

Comments
 (0)