I need to check that my input field is not empty.
I tried the following but it's not working.
JavaScript:
if ($scope.currentUser.Login.length != 0) { console.log($scope.currentUser.login.length); } HTML:
<div class="cClearFloat cInputSpace"> <input placeholder="login" ng-model="currentUser.login"> </div> Can someone help me?