I'm getting the response from the server like
category:{
listOfCategory: [
"diabetes",
"general"
],
id:1
}
using Ember data findAll method. I'm returning this to my model and I'm trying to display in hbs file using each loop.
js code
model(){
return this.store.findAll('category');
}
hbs code
<h1></h1>
Output :
diabetes,general
I want to display as separate category.
Aucun commentaire:
Enregistrer un commentaire