<input ng-model="company.title_{{selectedLang}}"
type="text" placeholder="" class="form-control">
我已经尝试过:
<input ng-model="company.title_[selectedLang]"
type="text" placeholder="" class="form-control">
它不起作用。 任何人都可以帮助我吗?
答案 0 :(得分:0)
<!-- REPLACE this
<input ng-model="company.title_{{selectedLang}}"
type="text" placeholder="" class="form-control">
-->
<!-- WITH this -->
<input ng-model="company['title_'+selectedLang]"
type="text" placeholder="" class="form-control">