<iron-ajax id="get_file"
handle-as="text"
last-response="{{fileContent}}"
headers='{"accept": "application/vnd.github.VERSION.html"}'
on-response="handleFile"
on-error="handleFileErrorResponse">
</iron-ajax>
ready: function() {
this.$.get_file.url = "https://api.github.com/repos/" + this.owner +
"/" + this.repo + "/contents/" + this.fileName + "?ref=" + this.branch +
"&access_token=" + this.tk;
this.$.get_file.generateRequest();
},
This works for m.
On Monday, May 18, 2015 at 1:00:13 AM UTC-7, Christian Tzolov wrote:
>
> The core-ajax element allows binding parameters in the url property:
>
> <core-ajax url="{{hostname}}/hawq-api/v1/version" handleAs="json" response
> ="{{resp}}"></core-ajax>
>
> In iron-ajax this is not possible anymore. It seems that iron-ajax's url
> expect a static string. Is there a new way to compose dynamic urls in
> iron-ajax?
>
> Thanks
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/acc49140-d438-40c8-bd15-e961b8a6e1c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.