0
我想提出我的离子谷歌放指令的NG模式,但它会随时记录未定义离子离子谷歌就地NG-模型不确定
观点:
<form ng-submit="submit()">
<ion-google-place placeholder="Enter Address" ng-model="location" geocode-options="geocodeOptions"/>
<button ng-click="submit()">Submit</button>
</form>
控制器:
$scope.submit = function(){
var location = $scope.location;
console.log(location);
}
你错过''''ng按钮''''按钮' – Tushar
@Tushar哦,对不起,但这不是真的问题 – teddybear123
你没有在'ng-click'按钮上调用'submit'函数' – Tushar