1
0
Derivar 0
Este cometimento está contido em:
Jon Lambson 2017-10-23 17:17:49 -06:00
ascendente c263ef710b
cometimento df43dbe68f
5 ficheiros modificados com 9 adições e 7 eliminações

Ver ficheiro

@ -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', {

Ver ficheiro

@ -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;
});
}
}
};
});

Ver ficheiro

@ -18,7 +18,7 @@
</a>
</div>
<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>
<p class="button-title">blah</p>
</a>