@cristhian4545 wrote:
I have this array
[Array[0], Array[0], Array[0], Array[0], Array[0], Array[0]]
0: Array[12]
1: Array[12]
2: Array[12]
3: Array[12]
4: Array[12]
5: Array[12]inside 0: Array[12]
0: Object
1: Object
2: Object
3: Object
4: Object
5: Array[2]$scope.cargarGrupos= function(form){
$ionicLoading.show({
template: 'Buscando'
});
var pais = document.getElementById("pais").value;var departamentos = document.getElementById("departamentos").value;
db.list(pais,departamentos).then(function(data){var grupos =[];
var datosParaVer ={};
$ionicLoading.hide();data.forEach(function(childSnapshot) {
//console.log(childSnapshot); var refw = new Firebase("https://cookie7.firebaseio.com/artistas/"+childSnapshot); dato = $firebaseArray(refw); //(console.log(dato); grupos.push(dato); console.log(grupos); $rootScope.artistasR =grupos; });
//$rootScope.artistasR = data;
//console.log(data);
$state.go('app.mostrar');
});how can show the data in the view with ng-repeat
Posts: 1
Participants: 1