Search⌘ K
AI Features

Setting up Routes

Understand how to generate and configure essential routes in Ember.js applications. Discover how to link these routes using the LinkTo component, enabling navigation in your app. This lesson guides you through setting up admin, category, and cart routes and integrating them properly into your e-commerce application.

We need three basic routes in our application—admin, category, and cart.

Generating routes

Let’s generate our three basic routes by running the following Ember CLI commands:

$ ember g route admin
$ ember g route category
$ ember g route cart

We can try ...