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

Routing through states

$
0
0

@rafaelddias wrote:

Hello,
I'm trying to construct an app that has multiple pages. When in browsing through the states I have a situation that requires routing like it is in the example described below.

.state('listing', {
    url: '/:catpai',
   controller: 'ListingCtrl',
  templateUrl: 'controllers/listing/listing.html'
})
 .state('pdi', {
     url: '/:catpai/:pdi',
     controller: 'PdiCtrl',
    templateUrl: 'controllers/pdi/pdi.html'
});

The problem is that, everytime that I access the pdi state, I lose my catpai variable. How can I write the code in a way that I dont lose that variable?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



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