Skip to content

Instantly share code, notes, and snippets.

@miwillhite
Created December 29, 2013 01:04
Show Gist options
  • Save miwillhite/8166245 to your computer and use it in GitHub Desktop.
Save miwillhite/8166245 to your computer and use it in GitHub Desktop.
%div{ 'ng-controller' => 'StoreCtrl' }
%a{ href: '#/stores' } Back to Stores
%h1 {{ store.name }}
%section.installations
%accordion{ 'close-others' => 'false' }
%accordion-group{ 'ng-repeat' => 'installation in store.installations' }
%accordion-heading {{ installation.name }}
%pane{ 'installation' => 'installation' }
storeControllers.controller('StoreCtrl', ['$scope', '$routeParams', 'Store',
function($scope, $routeParams, Store) {
$scope.store = Store.get({ id: $routeParams.id });
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment