The route defined above will by default use the blog-post.js route handler, the blog-post.hbs template, and be referred to as blog-post in any <LinkTo /> components.
Ejemplo Página About
Ruta en router.js
Router.map(function() {
this.route('about');
});
No necesita enrutador para traer datos o personalizar la carga.
Template en app/templates/about.hbs
<Jumbo>
<h2>About Super Rentals</h2>
<p>
The Super Rentals website is a delightful project created to explore Ember.
By building a property rental site, we can simultaneously imagine traveling
Enlaces de Interés
¿Cómo es que todo se enlaza?
Relación de ruta y template
Router.map(function() {
this.route('blog-post', { path: '/blog-post' });
});
Ejemplo Página About
Router.map(function() {
this.route('about');
});
<Jumbo>
<h2>About Super Rentals</h2>
<p>
The Super Rentals website is a delightful project created to explore Ember.
By building a property rental site, we can simultaneously imagine traveling
AND building Ember applications.
</p>