Ionic Pages


#1

I am trying to put on my app 3 page content in one .html file but I cant figure it out to do that. My .html page code is here:

     <script id="templates/topList.html" type="text/ng-template">
      <ion-view>
        <ion-content class="padding">
          <p>
           Some text
          </p>
        </ion-content>
      </ion-view>
  </script>
  <script id="templates/topList2.html" type="text/ng-template">
      <ion-view>
        <ion-content class="padding">
          <p>
            Some text
          </p>
        </ion-content>
      </ion-view>
  </script>

And my app.js is this:

.config(function($stateProvider, $urlRouterProvider) {
    $stateProvider

    .state('home', {
     url: '/',
     templateUrl: 'templates/home.html'
    })
    .state('registration', {
     url: '/registration',
     templateUrl: 'templates/registration.html',
     controller: 'RegistrationCtrl'
    })
    .state('code_entery_page', {
     url: '/code_entery_page',
     templateUrl: 'templates/code_entery_page.html',
     controller: 'code_entery_pageCtrl'
    })
    .state('registration-create-profile', {
     url: '/registration-create-profile',
     templateUrl: 'templates/registration-create-profile.html',
     controller: 'registration-create-profileCtrl'
    })
    .state('app.main-traveler-page', {
     url: '/main-traveler-page',
     templateUrl: 'templates/main-traveler-page.html',
     controller: 'main-traveler-pageCtrl'
    })

    .state('pinko.main-pinko-page', {
     url: '/main-pinko-page',
     templateUrl: 'templates/main-pinko-page.html',
     controller: 'main-pinko-pageCtrl'
    })



   .state('app', {
     url: '/app',
     abstract: true,
     templateUrl: 'templates/directives/traveler-navigation.html',
     controller: 'AppCtrl'
    })

    .state('pinko', {
     url: '/pinko',
     abstract: true,
     templateUrl: 'templates/directives/pinko-navigation.html',
     controller: 'AppCtrl'
    })




  $urlRouterProvider.otherwise('/');
});

but I dont know how to connect to toplist.html and toplist2.html in app.js to work when my page is open? In app.js - .state(‘pinko.main-pinko-page’) is the page where i want to show toplist.html and toplist2.html