Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reneviering committed Dec 4, 2016
1 parent ae3d7a1 commit b898a3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ router
.addRoute('route-with-template-id/:id', {
templateId: 'template42'
})

.addRoute('route-with-dispose', {
routeHandler: () => {},
dispose: () => {
// Is called before navigating to another route to do some cleanup if needed.
}
})

.otherwise(() => {
// If no route configuration matches, the otherwise route is invoked.
Expand Down

0 comments on commit b898a3d

Please sign in to comment.