Hi all!
I hope this is the right category
I installed all the new version of all… I think. ionic info says:
Ionic:
Ionic CLI : 6.12.4 (/Users/xxxxxx/.nvm/versions/node/v10.23.2/lib/node_modules/@ionic/cli)
Ionic Framework : ionic1 1.3.2
@ionic/v1-toolkit : 3.2.15
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.23.2 (/Users/xxxxxx/.nvm/versions/node/v10.23.2/bin/node)
npm : 6.14.10
OS : macOS Mojave
now the question. I started from a previous code, I need to get the value of an ion-input
I have the template (login.html)
and the corresponding loginCtrl.js
angular.module(‘xxx.Login.Controller’, )
.controller(‘LoginCtrl’, function(GlobalVariables, SupportServices, $scope
, $rootScope, $state, $ionicModal, $http, $ionicLoading
, $ionicPopup, $timeout, $q, $stateParams, …) {
var me = this;
$scope.data = {
tmp_email: “test”
};
$scope.login = function() {
alert($scope.data.tmp_email);
};
…
when I click the button the alert says “test”… also if I write in the input box everything else
I have tried all… I think
[(ngModel)]
ng-model
ng-Model
no way to get the value entered by the user…
someone can help me? thanks!!!