rootscope にオブジェクトがあり、フォーム入力にいくつかの値を表示したいと考えています。
私は次のことを試しました:
<input type="number" ng-model="$root.order.id" class="form-control" id="orderNumber" />
しかし、これは機能していません。
どのように値を ng-model に渡す必要がありますか?
助けてくれてありがとう。
rootscope にオブジェクトがあり、フォーム入力にいくつかの値を表示したいと考えています。
私は次のことを試しました:
<input type="number" ng-model="$root.order.id" class="form-control" id="orderNumber" />
しかし、これは機能していません。
どのように値を ng-model に渡す必要がありますか?
助けてくれてありがとう。