I\'m using ionic and I have the following view:
I had exact the same issue recently and that's probably a solution: https://stackoverflow.com/a/22768720/552936
Modified quote:
"If you use ng-model, you have to have a dot in there."
Make your model point to anobject.propertyand you'll be good to go.Controller
$scope.formData = {}; $scope.login = function () { console.log("User logged in with membership no: " + $scope.formData.membershipNo + "\n and password: " + $scope.formData.password); }Template