The iron:router hooks
The following table contains a list of router controller hooks:
|
This function can overwrite the default behavior of the route. If we define this function, we have to manually render the template using |
|
This function runs before the route gets rendered. Here, we can put extra custom actions. |
|
This function runs after the route gets rendered. Here, we can put extra custom actions. |
|
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. |
|
This function will be called every time the route is called. |
|
This function runs once when leaving the current route to a new route. |
|
This function can return subscription(s) that affect |
|
This function can return subscription(s), but will automatically render the |
|