mercredi 23 août 2017

Pass value from `route` to template

I am trying to pass a value from route to template. But I am not able to get the result. how to pass the value from route to template.

here is my try:

my route.js :

import Ember from 'ember';

export default Ember.Route.extend({
  name:"SCB"
});

here is my hbs file :

<h1>My Name is : </h1>

Live Twiddle




Aucun commentaire:

Enregistrer un commentaire