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

$state.go show the new content in old view

$
0
0

@devartstudio wrote:

Hi to all.
I have a single page that show a list with a "next" button, that show next list, in the same view.

in routejs:

.state('listTemplate', {
    url: '/list/:currentGroup/:currentList',
    templateUrl: 'templates/list.html',
    controller: 'listCtrl'
  })

in listCtrl:

nextList++;
$state.go( "listTemplate", {
    currentGroup: nextGroup,
    currentList: nextList
});

when click on next button, the actual page show the content of the next list, and the new page too.

How can i preserve the old content in old view and show the new content in new page?

I hope it's clear, sorry for my english.
Many thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



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