I want to validate my inputs from the template itself.
The span with the ng-show it not showed when the input is valid
I have to idea what am I doing wrong here:
<form name="registerForm" class="js-validation-register form-horizontal push-50-t push-50">
<div class="form-group">
<div class="col-xs-12">
<div class="form-material form-material-primary">
<input class="form-control" type="text" id="username" name="username" placeholder="Please enter a username" ng-required="true">
<label for="username">
<span ng-show="registerForm.username.$valid" class="text-success"><i class="fa fa-check-circle"></i></span>
Username
</label>
</div>
</div>
</div>
</form>
please your help