I\'m using ionic and I have the following view:
You need to define your $scope variables like this in your controller:
$scope.membershipNo = '';
$scope.password = '';
So your controller would look like:
app.controller('loginController', ['$scope', '$localstorage',
function($scope, $localstorage) {
$scope.membershipNo = '';
$scope.password = '';
$scope.login = function () {
console.log("User logged in with membership no: " + $scope.membershipNo +
"\n and password: " + $scope.password);
}
}]);