diff --git a/js/app.js b/js/app.js index 17af3c5..338f322 100644 --- a/js/app.js +++ b/js/app.js @@ -112,18 +112,18 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider } } }) - .state('app.shows', { + .state('app.websites', { url: 'shows', views: { 'content@': { - templateUrl: 'templates/shows.html', + templateUrl: 'templates/websites.html', controller: 'ShowsController', } } }) - .state('app.shows.detail', { + .state('app.websites.detail', { url: '/detail/:id', - templateUrl: 'templates/shows-detail.html', + templateUrl: 'templates/websites-detail.html', controller: 'ShowsDetailController' }) .state('app.dns', { diff --git a/js/services/shows-service.js b/js/services/shows-service.js index 943a5e7..5f6498d 100644 --- a/js/services/shows-service.js +++ b/js/services/shows-service.js @@ -21,7 +21,9 @@ app.factory('ShowsService',function(){ return shows; }, find: function(id){ - return _.find(shows, function(show){return show.id == id}); + return _.find(shows, function(show){ + return show.id == id; + }); } - } + }; }); diff --git a/templates/partials/menu.html b/templates/partials/menu.html index fbf741c..2a02ad0 100644 --- a/templates/partials/menu.html +++ b/templates/partials/menu.html @@ -18,7 +18,7 @@
- +

blah

diff --git a/templates/shows-detail.html b/templates/websites-detail.html similarity index 100% rename from templates/shows-detail.html rename to templates/websites-detail.html diff --git a/templates/shows.html b/templates/websites.html similarity index 100% rename from templates/shows.html rename to templates/websites.html