Skip to content

Instantly share code, notes, and snippets.

@recidive
Created March 4, 2014 14:48
Show Gist options
  • Save recidive/9347795 to your computer and use it in GitHub Desktop.
Save recidive/9347795 to your computer and use it in GitHub Desktop.
myApp.controller('ListController', function($scope, $route, $location, $http, Categories){
$scope.category = 'categoria-1';
$scope.subCategory = 'sub-categoria-1';
$scope.setCategory = function(category) {
$scope.category = category.name;
};
$scope.setSubCategory = function(category) {
$scope.subCategory = subCategory.name;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment