Answer the question
In order to leave comments, you need to log in
Why in Angularjs ng-value doesn't fire after input in input?
Hello.
There is the following code, which displays a student progress table:
<tr ng-repeat="student in groupServ.students | reverse" ng-class="{warning : student.updated, dim: student.deleted, success: student.created, danger: student.error}" data-id="{{student._id}}">
<td><input type="text" ng-value="student.name"
class="student-name" placeholder="Имя студента"
on-change="studentNameOnChange" ng-disabled="student.deleted"></td>
<td ng-repeat="subject in groupServ.subjects track by $index">
<input type="text" class="rating-cell" ng-value="student.rating[selectedCtrlPoint][$index]" ng-disabled="student.deleted" on-change="studentRatingOnChange">
</td>
<td class="td-buttons">
<button class="btn btn-sm btn-danger" click="deleteStudent" ng-hide="student.deleted">Удалить</button>
<button class="btn btn-sm btn-primary" click="restoreStudent" ng-hide="!student.deleted">Восстановить</button>
</td>
</tr>
<input type="text" class="rating-cell" ng-value="student.rating[selectedCtrlPoint][$index]" ng-disabled="student.deleted" on-change="studentRatingOnChange">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question