問題タブ [angularjs-forms]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - Angular - ラジオ ボタンの使用
Radio buttons の AngularJS 公式ドキュメントに正しく従っていると思います。
だから、私はこのコードを作成しました:
また、このように ng-value を使用して他の試みを行いました...
これが私のコントローラーです
問題は次のとおりです。何が間違っている可能性がありますか? ラジオ ボタンをクリックしても、モデル indexSelected が更新されないためです。どんな手掛かり ?
javascript - AngularJS を使用してテキスト フィールドの値を取得するにはどうすればよいですか?
フォームが送信されたときに、AngularJS を使用してテキスト フィールド値の値を取得したいと考えています。
以下のコードは常に「未定義」と表示されます。
html:
1回の試行:
別の試み: