I am new with Angular,
Then I want to get model data using javascript.
I want if is possible to getting with javascript a model value using the $scope and html element?
Is this the way to do??
<div class="tax-concept-form" ng-controller="TaxesController as taxes" ng-init="taxes.init()">
<table cellspacing="0" class="taxes-table table ctrl-3" id="tabla_edicion" tabindex="">
<tbody>
<tr ng-repeat="_tax in taxes.list" class="javorai-master-detail-row item-selectable" ng-model="_tax" id="row_{{_tax.id}}">
<td>{{_tax.tax.description}}</td>
<td>{{_tax.tax.rate}}</td>
</tr>
</tbody>
</table>
<script>
//I have a angular $scope
//some javascript
var el = document.getElementById('row_1');
//I want the tax of row_1
</script>
tr. ng-model is used on form elements (inputs, textarea, select), in order to populate the model with what the user enters/selects. A user doesn't enter anything in atr. Why would you use the dom to find the nth element of an array that is in your model? Just use$scope.taxes.list[1]in your controller.