February 2016
Beginner to intermediate
308 pages
5h 46m
English
One of the most useful helpers that Ember.js provides is the link-to helper. We'll discuss how to use this helpful feature in this recipe.
The link-to helper is used to navigate an Ember application. The first argument is always the name of the route. The second is the dynamic segment. We'll discuss dynamic segments a little later.
One of the simplest ways to use the link-to helper is to use it inline.
project directory:
$ ember g route students
Ember CLI will generate a new route called students. This will update the router.js file as well as add the template and route files.
students.hbs file in the app/templates ...Read now
Unlock full access