Skip to content

Instantly share code, notes, and snippets.

@boxxxie
Created March 7, 2013 01:24
Show Gist options
  • Save boxxxie/5104799 to your computer and use it in GitHub Desktop.
Save boxxxie/5104799 to your computer and use it in GitHub Desktop.
Application.Controllers
.controller('display'
, ['_'
,'$scope'
,'places'
, function(_,$scope,places){
$scope.model = {
places:places,
places_by_type:_.groupBy(places,'type')
};
console.log("$scope.model.places",$scope.model.places)
console.log("$scope.model.places_by_type",$scope.model.places_by_type)
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment