From the course: Ember.js Essential Training
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
What is a route? - Ember.js Tutorial
From the course: Ember.js Essential Training
What is a route?
- [Instructor] One of the core key conceptual concepts we need to deal with for understanding Ember is the route. We can think of routes as roughly equivalent to a URL. There is much more complexity here that we'll explore more in the course, but for now just understand that a route is the URL for the application, and the route is where everything kicks off for our Ember application. What can a route do? It could render a template. It can load a model that is then available to the template. It can redirect to a new route as needed, such as if your user is not allowed to visit that particular part of your application. It can handle actions that involve changing a model or transitioning to a new route. Let's add our first route now in our application. We want to go to our terminal application, and remember to navigate to our bookmarker directory. We're going to generate a new route for the about page. To do this we'll use Ember CLI and use the feature that we'll use a ton throughout…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.