Front page - Ionic and ui-router

Asked

Viewed 256 times

2

I am setting an application opening page, where a list is displayed and clicking on an item, the user is directed to a page that contains tabs.

As shown below:

exemplo

Each tab should display the contents of an html page (view). However, I am unable to display contents within these tabs.

Below is my config:

$stateProvider
.state('Clientes', {
    url: '/clientes',
    views: {
        'conteudo': {
            templateUrl: "templates/inicio.html",
            controller: 'ClienteController'
        }
    }
})
.state('menu',{
    url: '/menu/:dadosLogin',
    views: {
        'conteudo':{
            templateUrl: "templates/menu.html",
            controller: 'ClienteController'
        }
    }
})
.state('menu.dados', {
    url:'/acessos',
    views:{
        'tab-dados':{
            templateUrl: "templates/tab-dados.html"
        }
    }
});

How can I properly configure the contents within these tabs by my routes?

1 answer

1

You’ve already set up, just edit the template files.

You should put the template files in the directory www.

In his example, /minhaApp/www/templates/tab-dados.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.