2016-11-22 48 views
0

我在angularjs新的,並試圖實現對谷歌API例如`角度驗證如何使用角度JS驗證與谷歌阿比

https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

當我輸入網址自動補狀態,市和縣但angularjs仍然給我的錯誤,城市,州和國家是必需的,但這些數據已自動填充谷歌api

角驗證碼是

<div class="col-md-3"> 
      <label for="email" class="control-label">*City:</label> 
      <span class="help-block" ng-show="form.city.$invalid && form.city.$touched"> 
       <strong>*City is Required</strong> 
      </span> 
      <input class="form-control" ng-model="formdata.city" ng-required="true" name="city" value="<% formdata.city %>" id="locality" > 

     </div> 

但是,當我寫城市,州和國家本身,那麼一切工作正常。那麼我怎樣才能使用它與谷歌api

回答