[n00b]: How to route single template page without using tabs?


#1

I’m going off the standard ionic pets sample, and I can’t seem to get page views without creating a tab directive. I don’t want nav tabs on any pages at all, ever. I would like to route /mypage to a template mypage.html, but no matter what I do, it’s blank (unless of course I set up a similar structure to below)

// setup an abstract state for the tabs directive
    .state('tab', {
      url: "/tab",
      abstract: true,
      templateUrl: "templates/tabs.html"
    })

    // the pet tab has its own child nav-view and history
    .state('tab.pet-index', {
      url: '/pets',
      views: {
        'pets-tab': {
          templateUrl: 'templates/pet-index.html',
          controller: 'PetIndexCtrl'
        }
      }
    })

#2

Hi guyz… I am using same base code (pets sample) for my quiz app and have used following to go to page without any tab layout … its working for me.

.state('review', {
  url: '/review/:quizId',
  templateUrl: 'templates/quiz-review.html',
  controller: 'reviewCtrl'
 })

apart from some UI issue its working perfectly for me.
(Quiz App : Issues)

Best Regards,
EddyTools
http://www.eddytools.com