Lessons:14Length:2.5 hours
  • Overview
  • Transcript

4.2 Router

The first component that we'll take a look at is the router. It's the frontline of battle, almost everything starts in the router. It's responsible of handling state in your application, setting the content to a controller and instantiating a view and template to render stuff to the screen.

In this lesson you will learn how to define your routes and how to pass some different options to it to flex your application to your needs. Some of the available options will not be shown until later in the course as you need to understand the remaining components a little better, they'll be revealed in time.