Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Hi I've been having problems withi ng-repeat and a array multidimencional of objects

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>