0
maxlengthが超過した後でキーボード入力を無効にする方法は?
">
<ion-content>
<h3 class="style3"><strong>Message</strong></h3>
<form name="form1">
<div class="list">
<label class="item item-input" >
<input type="text" placeholder="Enter Number"ng-blur='SendInvit()' ng-model="message.name" name="phone" ng-required="true" />
<span class="error-message" ng-show="form1.phone.$dirty&&form1.phone.$invalid"> </span>
</label>
<input type="text" rows="4" cols="" placeholder="Write Your Message"
class="area" name="phone" ng-model="message.description" ng-maxlength=
"{{maxLengthの}}" NG変化=" updateBody();」NG-必要= "true" に>
<span class="error-message" ng-show="form1.phone.$dirty &&form1.phone.$invalid"></span>
<div id="characters">
<span>Characters left: {{maxLength - message.description.length}}</span>
送信キャンセル 以下は
私work.Pleaseのplunkerは、フォームが持つ無効な場合ng-disabled
を使用したコード http://plnkr.co/edit/NDGeMcqzpbIqwd8sr5jM
ありがとうございます。 –
しかし、バインディングと変更がうまくいかなかった理由を教えてください。本当に知りたいです。 –
うまくいけば、答えを受け入れてください:)。あなたのコードで 'ng-change'が表示されません。 –