Different states in the same view, is it possible?


#1

Hi everyone

Here is my newbie question…

Is it possible to have different states loading templates in the same view?

Like this:

.state('tab.listas', {
    url: '/listas',
    views: {
      'listas-tab': {
        templateUrl: 'listas.html',
        controller: 'ListasCtrl'
      }
    }
  })

  .state('tab.listas.lista', {
    url: '/:id_lista',
    views: {
      'listas-tab': {
        templateUrl: 'listas.lista.html',
        controller: 'ListaCtrl'
      }
    }
  })

Also, here is a Plunker where I was not able to do so:

Thanks a lot!