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

3 layers of depth with Ionic TABS!

$
0
0

@claudiocarmeli wrote:

Hello,
This piece of code is what you find in a new Ionic project if you choose the Tabs example.
In app.js you have this

  .state('tab.chats', {
    url: '/chats',
    views: {
      'tab-chats': {
        templateUrl: 'templates/tab-chats.html',
        controller: 'ChatsCtrl'
      }
    }
  })

  .state('tab.chat-details', {
    url: '/chats/:chatId',
    views: {
      'tab-chats': {
        templateUrl: 'templates/chat-details.html',
        controller: 'ChatsCtrl'
      }
    }
  })

What this does is create a page that depends on another page, for example if you click on one chat you will get to another page with details about that one chat.

I would like to take this one step further and have another page that would give even more details about the chat. Is it possible?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49081

Trending Articles



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