标签: angularjs ionic-framework
view img
controller img
" TypeError:无法读取属性'用户名'未定义的 在Scope。$ scope.login
答案 0 :(得分:0)
传递参数错误。将其更改为
ng-click=login(data.username,data.password)
然后,在控制器中
$scope.login = function(username,password){ $scope.username = username; $scope.password = password; ........... }