0
次のようにします。AngularJSアップデート入力と2つのモデルonSubmit
ディレクティブ1 - >ユーザーフォームに表示 ディレクティブ2 - >ユーザーが[送信]ボタンを押したときにのみ更新されます。
Examplesnippet:
<h2>{{directive1}}</h2> <!-- This is seen by the user when he changes directive 1 !-->
<input type="text" class="form-control" ng-model="directive1" name="input" placeholder="This is the primary input (this needs to be updated when the form is used by the user. ">
<h3>{{directive2}}</h3> <!-- This should only be changed when the user presses the submit button on the form ng-model-options: {onUpdate: 'submit'}