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',
 | 
			
		||||
    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', {
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user