iron-ajax… wat?!

  • Leverage the <iron-ajax> element to simplify AJAX calls in your web applications, primarily using HTML.

  • By combining data providers with data bindings, you can significantly reduce the amount of JavaScript needed, making your code more maintainable.

  • This approach is demonstrated by building a GitHub issue fetcher with minimal JavaScript.

It might seem unexpected, but using an element for AJAX is actually pretty great! In this episode I’ll show you how to build a simple GitHub issue fetcher, using primarily HTML. When you combine data providers with the magic of bindings, you can remove most of the JavaScript in your app, and that makes things much easier to maintain!

Read More

Demo source

https://github.com/Polymer/polycasts/tree/master/ep26-iron-ajax/gh-issues

seed-element

https://github.com/polymerelements/seed-element

Polymer Yeoman generator

https://github.com/yeoman/generator-polymer

Polyserve

https://github.com/polymerlabs/polyserve

GitHub API

https://developer.github.com/v3/

iron-ajax docs

https://elements.polymer-project.org/elements/iron-ajax

Polymer Summit

https://www.polymer-project.org/summit