mercredi 31 août 2016

Ember template not rendering

I have my rails api to serve the list of tasks as json to the url

http://ift.tt/2bVDTaC

I had defined the routes in ember as

router.js
this.route('tasks',function() {
    this.route('index', {path: ''});
}

I have a template for "http://ift.tt/2bVDTaC"

When i hit the route, its not rendering the template, instead the server response JSON is loaded

Is there any restriction like , the server and ember routes must be different ? If not, how to overcome this ?




Aucun commentaire:

Enregistrer un commentaire