O'Reilly logo

Meteor: Full-Stack Web Application Development by Marcelo Reyna, Isaac Strack, Fabian Vogelsteller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The iron:router hooks

The following table contains a list of router controller hooks:

action

This function can overwrite the default behavior of the route. If we define this function, we have to manually render the template using this.render().

onBeforeAction

This function runs before the route gets rendered. Here, we can put extra custom actions.

onAfterAction

This function runs after the route gets rendered. Here, we can put extra custom actions.

onRun

This function runs once when the route is first loaded. This function doesn't run again on a hot code reloads or when the same URL is navigated again.

onRerun

This function will be called every time the route is called.

onStop

This function runs once when leaving the current route to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required