# Blank Page - templates not loading in ion-nav-view

**URL:** <https://forum.ionicframework.com/t/blank-page-templates-not-loading-in-ion-nav-view/94843>\
**Category:** ionic-v1\
**Created:** [June 18, 2017, 11:25am UTC](https://forum.ionicframework.com/t/blank-page-templates-not-loading-in-ion-nav-view/94843 "2017-06-18T11:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icode4weed](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/icode4weed/32/110703_2.png) [@icode4weed](https://forum.ionicframework.com/u/icode4weed)\
**Post date:** [June 18, 2017, 11:25am UTC](https://forum.ionicframework.com/t/blank-page-templates-not-loading-in-ion-nav-view/94843/1 "2017-06-18T11:25:22Z")

</div>

I’ve been searching the net all day for a solution but I can’t find one.

My routes are not working although there are no any errors in the console.

Here’s my index.html

```auto
<!DOCTYPE html>
        <html>
          <head>
            <meta charset="utf-8">
            <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
            <title></title>

            <link rel="manifest" href="manifest.json">

            <!-- un-comment this code to enable service worker
            <script>
              if ('serviceWorker' in navigator) {
                navigator.serviceWorker.register('service-worker.js')
                  .then(() => console.log('service worker installed'))
                  .catch(err => console.log('Error', err));
              }
            </script>-->

            <link href="lib/ionic/css/ionic.css" rel="stylesheet">
            <link href="css/style.css" rel="stylesheet">

            <!-- ionic/angularjs js -->
            <script src="lib/ionic/js/ionic.bundle.js"></script>

            <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
            <link href="css/ionic.app.css" rel="stylesheet">
            -->
          </head>
          <body ng-app="myApp">
            <ion-nav-view animation="slide-left-right"></ion-nav-view>
            <!-- cordova script (this will be a 404 during development) -->
            <script src="cordova.js"></script>

            <script src="js/app.js"></script>
            <script src="js/routes.js"></script>
            <!-- controllers -->
            <script src="js/controllers/loginCtrl.js"></script>
            <script src="js/controllers/dashboardCtrl.js"></script>
            <!-- your app's js -->

          </body>

        </html>

```

app.js

```auto
var app = angular.module('myApp', ['ionic']);

app.run(function($ionicPlatform, $timeout) {
  $ionicPlatform.ready(function() {
    if(window.cordova && window.cordova.plugins.Keyboard) {
      // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
      // for form inputs)
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

      // Don't remove this line unless you know what you are doing. It stops the viewport
      // from snapping when text inputs are focused. Ionic handles this internally for
      // a much nicer keyboard experience.
      cordova.plugins.Keyboard.disableScroll(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });

});

```

routes.js

```auto
app.config(function($stateProvider, $urlRouterProvider) {
  $stateProvider

    .state('app.dashboard', {
      url: '/home',
      abstract: true,
      templateUrl: "./templates/dashboard.html",
      controller: 'DashboardCtrl'
    })

    .state('app.login', {
      url: '/login',
      abstract: true,
      templateUrl: "./templates/login.html",
      controller: 'LoginCtrl'
    })

});

```

login.html

```auto
<ion-view view-title="login">
  <ion-content class="padding">
     LOGIN
  </ion-content>
</ion-view>

```

dashboard.html

```auto
<ion-view view-title="dashboard">
  <ion-content class="padding">
     DASHBOARD
  </ion-content>
</ion-view>

```

console

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/b/6/b63095c60add7bf3d7259a15f6852be2246a2e56.png)

Please help me 😕
