-1
I’m trying to make a form where a field I want has a maximum of 10 characters, but the angle seems to be ignoring the field, for testing I had demonstrate on the screen the value of "$Valid": follows command below:
<form name="formNewTask" class="form-signin" method="post" th:action="@{/saveTask}">
<div class="form-group">
<label for="problem" class="sr-only">Problema</label>
<div class="cols-sm-10">
<div class="input-group">
<input ng-maxlength="10" th:value="${task.problem}" type="text" class="form-control" id="problem" name="problem" placeholder="Problema" required="required"/>
</div>
</div>
</div>
<div class="alert alert-danger">{{formNewTask.problem.$valid}}</div>
</form>
Below is a picture of how the result of "{formNewTask.problem. $Valid}}"
Note 1: No error in the browser console. Obs 2: this screen already has another functionality with the angular, so this imported correctly.