0
Angular JSの新機能です。しかし、1行または単純な解決策を見つけることができませんでした。 入力テキストボックスで「残りの文字数」を達成しようとしていますが、explorationObjectiveService.displayed
の値はundefined
です。ヘルプは高く評価しました。このsinppest月はあなたを助け
HTML
<input id="explorationObjective" type="text"
class="form-control protractor-test-exploration-objective-input"
ng-model="explorationObjectiveService.displayed"
ng-blur="saveExplorationObjective()" placeholder="Learn how to ..." maxlength="100">
指令JS
$scope.counter= 100 - ($scope.explorationObjectiveService.displayed).length;
間違っ括弧:($スコープ。経験lorationObjectiveService.displayed.length); – Groben
かっこは何も影響しません@Groben – taguenizy
指令スクリプトを追加してください –