An ember route is built with three parts:
- An entry in the Ember router which maps between our route name and a specific URI.
- A route handler file, which sets up what should happen when that route is loaded.
- A route template, which is where we display the actual content for the page.
In ember when we want to make a new page that can be visited using a URL, we need to generate a “route” using Ember CLI. Hence the generator will print out:
- Installing route
- Create app/routes/about.hbs
- Create app/templates/about.hbs
- Updating router
- Add route about
- Installing route test
To define a route, run ember generate route route-name. This command will generate a file name route-name.js in app/routes/ folder.