Ember.js Web Development with Ember CLI by 2015

Ember.js Web Development with Ember CLI by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


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.