Ember.js Web Development with Ember CLI by Puri Suchit

Ember.js Web Development with Ember CLI by Puri Suchit

Author:Puri, Suchit [Puri, Suchit]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-05-26T16:00:00+00:00


You can see from what precedes that apart from the application template, we have defined two additional templates, products and about. These templates contain the data to be displayed for the products and about pages.

In application.hbs, we are also using a very useful handlebars helper expression, {{#link-to}}. The link-to helper expression helps us avoid hardcoding the URL address in our application. It fetches the URL pattern from the mappings in the router.

So {{#link-to 'products'}} Products {{/link-to}} would generate something like the following:

<a id="ember258" class="ember-view" href="/about">About</a>.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.