HTML:
<input ng-model='user.email' type="text" value='' />
<input ng-model='user.password' type="password" value='' />
<div ng-click='tryEnter()'>
<span>Enter</span>
</div>
JS:
.controller('enterController', ['$scope', '$http', '$q', function($scope, $http, $q) {
$scope.user = {};
$scope.tryEnter = function() {
debugger;
}
}])
Inside click function I try to get value from input by ng-model. Bot $scope not abailable inside function.