Ionic uses child scopes and isolate scopes quite frequently. Because of this, you will often not get 2 way binding on primities. You need to be using “dot notation”.
I’m looking through the code right now. I am taking a GUESS here, but I think the problem is your lack of “dot notation”.
Ionic quite frequently creates child scopes or isolate scopes. So primitives in your controller will not get 2 way binding.
Try the following :
.controller('LoginCtrl', ['$scope', 'loginService', '$location', function($scope, loginService, $location) {
$scope.data = {
"email" : null,
"pass" : null,
"confirm" : null,
"createM…
You need to use dot notation. When you just use “numberSelection”, you do not get 2 way binding. You get simple inheritance.
Here is a working example.