I am trying to filter the data from the ember model but I am unable to find the solution.
<h2>
//The file is in app/routes/notes.js<br/>
import Route from '@ember/routing/route';
<br/>
export default Route.extend({<br/>
model() {<br/>
let l= this.store.findAll('note');<br/>
return l;<br/>
}<br/>
});<br/>
</h2>
------------------------------------------
<h2>
//The file is app/templates/note.hbs <br/><br/>
<br/>
Title: <br/>
Description: <br/>
Date:<br/>
<br/>
</h2>
I am trying to filter the data return from a model but it is not working as I am thought.The JSON format used in this is
Aucun commentaire:
Enregistrer un commentaire