My list:
<ion-list>
<ion-item ng-repeat="planta in listaPlantas" href="#/plantaEscolhida/{{planta}}"><i class="ion ion-leaf balanced"></i> {{planta.title.rendered}}
<p ng-bind="thisCanBeusedInsideNgBindHtml">{{planta.content.rendered}}</p>
</ion-item>
</ion-list>
My Routes
value where this
.state("menu.listagem", {
url: '/listagem',
views:{
'menuContent':{
templateUrl:'templates/listagem.html'
}}
})
values where go to get
.state("menu.plantaEscolhida", {
url: '/plantaEscolhida/:planta',
views:{
'menuContent':{
templateUrl:'templates/plantaEscolhida.html'
}}
})
Controller
angular.module('starter')
.controller('plantaEscolhidaController', function($scope, $stateParams, PlantaService){
$scope.plantaEscolhida = $stateParams.planta;