Skip to content

Instantly share code, notes, and snippets.

@spsaucier

spsaucier/app.js Secret

Created March 8, 2015 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spsaucier/39515e612bbec03bff45 to your computer and use it in GitHub Desktop.
Save spsaucier/39515e612bbec03bff45 to your computer and use it in GitHub Desktop.
FFA_SW 9
.controller('SpeciesCtrl', function($scope, $state, $http){
$scope = genericController($scope, $state, $http, 'species', 'specie');
})
.controller('PlanetsCtrl', function($scope, $state, $http){
$scope = genericController($scope, $state, $http, 'planets', 'planet');
})
.controller('PeopleCtrl', function($scope, $state, $http){
$scope = genericController($scope, $state, $http, 'people', 'person');
})
.controller('StarshipsCtrl', function($scope, $state, $http){
$scope = genericController($scope, $state, $http, 'starships', 'starship');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment