First page - Ionic and ui-router

2

I'm defining an application opening page, where a list is displayed and clicking an item, the user is directed to a page that contains tabs .

As shown below:

Eachtabshoulddisplaythecontentsofanhtmlpage(view).However,Iamnotabletodisplaycontentwithinthesetabs.

Belowismyconfig:

$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 content within these tabs through my routes?

    
asked by anonymous 06.07.2015 / 20:37

1 answer

1

You have already set up, just edit the template files.

You should put the template files in the www directory.

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

    
02.12.2015 / 21:21