From df43dbe68f201c307383149d76bbd8e3357d0ca1 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Mon, 23 Oct 2017 17:17:49 -0600 Subject: [PATCH] rename --- js/app.js | 8 ++++---- js/services/shows-service.js | 6 ++++-- templates/partials/menu.html | 2 +- templates/{shows-detail.html => websites-detail.html} | 0 templates/{shows.html => websites.html} | 0 5 files changed, 9 insertions(+), 7 deletions(-) rename templates/{shows-detail.html => websites-detail.html} (100%) rename templates/{shows.html => websites.html} (100%) 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