Skip to content

Instantly share code, notes, and snippets.

@bradleybuda
Created September 19, 2013 05:10
Show Gist options
  • Save bradleybuda/6619339 to your computer and use it in GitHub Desktop.
Save bradleybuda/6619339 to your computer and use it in GitHub Desktop.
angular.module('myApp')
.controller('MyCtrl', ['$scope', '$log', ($scope, $log) ->
for evt in ['$stateChangeStart', '$stateNotFound', '$stateChangeSuccess', '$stateChangeError', '$viewContentLoading', '$viewContentLoaded']
$scope.$on evt, ->
$log.debug evt, arguments
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment