I am seeking the mode by its id as like this:
http://localhost:4302/cs2i/balance/balanceEdit/4196074912005007
, In my route I use:
model: function(params) {
var model = this.store.peekRecord('card-list', params.id );
console.log( "model", model );//getting model with id
console.log( "model", model.get("id") ); //but I am not get property id when i console.
return model;
},
Same way in hbs
:
<h6>
//getting the name
//getting
</h6>
<ul>
<li></li>//getting
<li></li>//not getting
<li></li>//not getting
<li></li>//note getting
</ul>
What is wrong with my code here? any one help to see the model data's in router
?
Aucun commentaire:
Enregistrer un commentaire