rename
This commit is contained in:
parent
c263ef710b
commit
df43dbe68f
|
@ -112,18 +112,18 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('app.shows', {
|
.state('app.websites', {
|
||||||
url: 'shows',
|
url: 'shows',
|
||||||
views: {
|
views: {
|
||||||
'content@': {
|
'content@': {
|
||||||
templateUrl: 'templates/shows.html',
|
templateUrl: 'templates/websites.html',
|
||||||
controller: 'ShowsController',
|
controller: 'ShowsController',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('app.shows.detail', {
|
.state('app.websites.detail', {
|
||||||
url: '/detail/:id',
|
url: '/detail/:id',
|
||||||
templateUrl: 'templates/shows-detail.html',
|
templateUrl: 'templates/websites-detail.html',
|
||||||
controller: 'ShowsDetailController'
|
controller: 'ShowsDetailController'
|
||||||
})
|
})
|
||||||
.state('app.dns', {
|
.state('app.dns', {
|
||||||
|
|
|
@ -21,7 +21,9 @@ app.factory('ShowsService',function(){
|
||||||
return shows;
|
return shows;
|
||||||
},
|
},
|
||||||
find: function(id){
|
find: function(id){
|
||||||
return _.find(shows, function(show){return show.id == id});
|
return _.find(shows, function(show){
|
||||||
}
|
return show.id == id;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container" ui-sref-active="active">
|
<div class="button-container" ui-sref-active="active">
|
||||||
<a ui-sref=".shows">
|
<a ui-sref=".websites">
|
||||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-plane fa-2x" aria-hidden="true"></i></button>
|
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-plane fa-2x" aria-hidden="true"></i></button>
|
||||||
<p class="button-title">blah</p>
|
<p class="button-title">blah</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue