Polymer returning JSON object on AJAX success not using jquery -


i'm trying animate svg images based on degree provided user. requirement have read degree external json file. i'm new polymer how can achieved?

you can use iron-ajax.

here's example:

<iron-ajax url="post.json" auto last-response="{{theresponse}}"></iron-ajax> 

the url attribute here refers url target of request, auto means performs request either when url or params changes, , last-response refers last response object received.


Comments

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -