0
我正在试图合并3个输入文本并将数据绑定到另一个输入文本。如何将文本从文本输入绑定到使用angularjs的另一个文本输入
<input type="text" class="textbox" name="country" id="loc_country" value="Gershon" ng-model="location.country"/>
<input type="text" class="textbox" name="city" id="loc_city" ng-model="location.city"/>
<input type="text" class="textbox" name="street" id="loc_street" autocomplete="off" ng-model="location.street"/>
<input type="text" class="textbox" name="result" id="result"/>
这里需要的第3个输入与结合
为什么第三个是输入框?你真的需要双向绑定吗? – Rebornix
第四个输入是否尝试了这个ng-model =“location.address = location.country +''+ location.city +''+ location.street'' –
Rebornix,第四个输入是google map输入auto complete,所以对于你的问题,是的:)。 – user1684140