vendredi 2 septembre 2016

Access the request url for current route in Ember.js

I'd like to retrieve the GET request url sent for the current route from Ember. In case it's useful, I'm interested in manipulating this url to create a separate url for a download that I'll pass to:

window.location.assign(url);

As a caveat, I'm not interested in retrieving the browser URL with something like:

this.get('router.url');

I'd like to retrieve the request URL sent out to my API. Is this possible with Ember? If so, any guidance on how I may pull this from the route is appreciated.




Aucun commentaire:

Enregistrer un commentaire