Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLフォームにある入力要素は次のとおりです。
<input ng-model="amount" />
今のところ、私のコントローラーでは $scope.mount = 0 なので、その値で表示されます。私が必要とするのは、最初は入力を空白にすることです。これにより、ユーザーは ng-model バインディングを利用しながら、0 を消去することなくデータを入力できます。