diff --git a/_guide/005. transitionhooks.md b/_guide/005. transitionhooks.md index f7044bdd6d6b..67586de44336 100644 --- a/_guide/005. transitionhooks.md +++ b/_guide/005. transitionhooks.md @@ -250,7 +250,7 @@ This example registers an `onEnter` which will be invoked for every state that i ```js $transitions.onEnter({}, function(transition, state) { console.log('Transition #' + transition.$id + ' Entered ' + state.name); -} +}); ``` A transition from `hello` to `people.person` will then log the following to the console: @@ -265,7 +265,7 @@ Like before, the criteria object can be used to limit which transitions the hook ```js $transitions.onEnter({ entering: 'people' }, function(transition, state) { console.log('Transition #' + transition.$id + ' Entered ' + state.name); -} +}); ``` After adding the criteria, the same transition from `hello` to `people.person` would log the following: