I am attempting to display a variable that is within a for loop. Here is my code where I store the value of $scope.datosTuto[i].Nombre in a variable. When I use an alert to print $scope.NombTuto, I can see the data but I want to display it on my HTML page.
MostrarTuto.servicioMostrarTuto().success(function(data){
$scope.datosTuto=data;
var TamanioURI = $scope.datosTuto.length;
for ( i=43; i < TamanioURI; i++) {
if ($scope.nom_coe == $scope.datosTuto[i].Residencia){
$scope.NombTuto=$scope.datosTuto[i].Nombre;
alert($scope.NombTuto+" ...");
};
};
})
This section displays my HTML page:
<div class="list card">
<ion-list>
<ion-item class="item item-icon-left" type="item-text-wrap" ng-repeat="i in datosTuto">
<i class="icon ion-ios-checkmark-outline"></i>
<h2>Nombre: {{i.Nombre}}</h2>
<h2>Horario: {{i.Sexo}}</h2>
</ion-item>
</ion-list>
</div>
I just need help with printing this $scope.NombTuto on my page. Any assistance would be greatly appreciated. Thank you!