angularjs - ionic collection-repeat not working -
when refer item individualy on angularjs works fine, in collection not work.
this colletcion not working in ionic project, knows wrong ?? !
//javascript part
//html part
mapapp.controller('menuctrl', function($scope) { $scope.itens = [ {titulo: 'mapa'}, {titulo: 'login'}, {titulo: 'sobre'} ]; $scope.titulomenu = 'menu'; //$scope.curritens = $scope.itens; }); <!-- not work --> <ion-item nav-clear menu-close href="#/map/login" collection-item-height="52" collection-repeat"item in itens" class="item item-icon-left" item-height="250" item-width="100%"> <i class="icon ion-chevron-right"></i>{{item.titulo}} </ion-item> <!-- work --> <ion-item nav-clear menu-close href="#/map/login" class="item item-icon-left" > <i class="icon ion-ios-arrow-right"></i>{{itens[0].titulo}} </ion-item> <ion-item nav-clear menu-close href="#/map/login" class="item item-icon-left" > <i class="icon ion-ios-arrow-right"></i>{{itens[1].titulo}} </ion-item> <ion-item nav-clear menu-close href="#/map/login" class="item item-icon-left" > <i class="icon ion-ios-arrow-right"></i>{{itens[2].titulo}} </ion-item>
you missing equals sign in html.
collection-repeat"item in itens" collection-repeat="item in itens"
Comments
Post a Comment