Skip to content
Joshua Nussbaum edited this page Jan 24, 2015 · 2 revisions

Sprangular emits the following events:

  • cart.add an item was added to the cart
  • cart.empty the cart was emptied
  • account.login user signed in
  • account.logout user signed out
  • loading.start loading animation triggered
  • loading.end loading animation ended

Handling events

# show modal when item added to cart
$scope.$on 'cart.add', ->
  $scope.showModal = true

Clone this wiki locally