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.

The index page

The index page

- [Voiceover] At this point, let's add an index page with some actual content and link to our about page. So we'll start like we generally do when working with content for a page and the template for that particular page, but do we actually have a template for the index page? Let's open up our code editor and check. If we go to app, templates, we actually don't have an index page, and that's because we don't have an index template or even an index route. So let's add the route, following the pattern that we've already seen. In the command line, we'll run the command, Ember g. G here is our shortcut to generate, so Ember g route index. Great, so we have our index template and an index route. Let's next add some context. We'll open up our newly created index template and our application at app, templates, index.hbs, and we'll add, before the outlet tag, a h2 that says, welcome. And we'll add a short little paragraph that says, our site let's you bookmark urls to save them. This is…

Contents