Chapter 8. Routing using Iron.Router

This chapter covers

  • Adding routing capabilities to Meteor applications
  • Creating layouts
  • Improving code structure using Iron.Router
  • Extending Iron.Router with controllers, hooks, and plug-ins
  • Creating server-side routes and APIs

As your application grows in size and complexity, you’ll have to deal with lots of subscriptions, publications, collections, and templates. You need a way to organize all these things as well as specify what to render and what data context should be available in the rendered templates.

One good approach to handling this complexity is to use routes. This means you decide what to subscribe to and what to render and you specify the data context, depending on unique URLs. The ...

Get Meteor in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.