Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49172

Because my values are not able to pass the url?

$
0
0

@kevinjhon wrote:

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;

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49172

Trending Articles



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