2

angularjs には、次のコードがあります。

<input type="text" ng-model="properties.foreground.value">

私はそれが次のようになりたい:

<input type="text" ng-model="properties.{{type}}.value">

モデル入力の一部を文字列に変更しました。それは動作しません。他の方法で行うことはできますか?

4

1 に答える 1