I am using ember cli and Ember Data. My requirement is to keep ember model in Models sub folder. Ex. My Model Name is "mymodel" and have kept it inside app\models\myfolder\mymodel.js folder. store.find works with following syntax - this.store.find('myfolder.mymodel'); Above syntax generates service URL as http://localhost:4200/myfoldermymodel where as my service can be accesssed using URL http://localhost:4200/mymodel only. If I try to override buildURL or pathForType on RESTAdapter though service call is successful model is not getting populated. Any help appreciated. at one line question is how to put model in subfolders?
Aucun commentaire:
Enregistrer un commentaire