// js/routes

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .config(config);

  function config($routeProvider) {
    $routeProvider
      .when("/notes", {
        templateUrl: "../templates/pages/notes/index.html",
        controller: "NotesIndexController",
        controllerAs: "notesIndexCtrl"
      })
      .when("/users", {
        templateUrl: "../templates/pages/users/index.html"
      })
      .when("/notes/new", {
        templateUrl: "templates/pages/notes/new.html",
        controller: "NotesCreateController",
        controllerAs: "notesCreateCtrl"
      })
      .when("/notes/:id", {
        templateUrl: "templates/pages/notes/show.html",
        controller: "NotesShowController",
        controllerAs: "notesShowCtrl"
      })
      .otherwise({
        redirectTo: "/"
      });
  }
})();


// js/routes

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .config(config);

  function config($routeProvider) {
    $routeProvider
      .when("/notes", {
        templateUrl: "../templates/pages/notes/index.html",
        controller: "NotesIndexController",
        controllerAs: "notesIndexCtrl"
      })
      .when("/users", {
        templateUrl: "../templates/pages/users/index.html"
      })
      .when("/notes/new", {
        templateUrl: "templates/pages/notes/new.html",
        controller: "NotesCreateController",
        controllerAs: "notesCreateCtrl"
      })
      .when("/notes/:id", {
        templateUrl: "templates/pages/notes/show.html",
        controller: "NotesShowController",
        controllerAs: "notesShowCtrl"
      })
      .otherwise({
        redirectTo: "/",
        templateUrl: "templates/pages/index/index.html"
      });
  }
})();


Add templateUrl for default route
Add templateUrl for default route
