News for hackers. Stuff that matters.

How Do the Google Web Projects Angular, Polymer and NG-Material) All Fit Together?

It seems like Google is doing a lot to assist front-end web development. Looking at AngularJS 2.0, Polymer 1.0 and Material Design (Angular Material), they all seem to do slightly different stuff, but with overlap. Are they designed to all work together? Polymer doesn't seem to cover all Angular Material features. Polymer seems top have some routing but not a patch on AngularJS. etc. If I was building a web app for Google (in-house pretend), maybe a google docs clone etc. which of these tools would I use to do which bits?
( 5 comments | 3 points | on HN )
Re:How Do the Google Web Projects Angular, Polymer and NG-Ma... by T-A on Saturday April 02, 2016 @02:35PM (#11412671)
My 10 000 foot view:

+ Polymer is a polyfill for the Web Components "standard" + a bunch of commonly needed components ready for use;

+ Angular 2 is designed to use Web Components "natively", without any need to wrap them up in Angular-specific code;

+ Material Design is just a look. You can style Web Components any way you want.

Disclaimer: I don't use any of the above. :D

Re:How Do the Google Web Projects Angular, Polymer and NG-Ma... by pax_americana on Saturday April 02, 2016 @06:52PM (#11413944)
Polymer is not a polyfill for the standards. It's just a library for creating web components in a less boilerplatey manner. The polyfill library is called webcomponents.js.
Re:How Do the Google Web Projects Angular, Polymer and NG-Ma... by T-A on Sunday April 03, 2016 @05:13AM (#11415477)
If you wish to be precise, webcomponents.js was broken out of Polymer a while back. See e.g. [1]. In practice, if you use Polymer you are still using the polyfill + the elements from the catalog, as exemplified on [2].

[1] https://github.com/Polymer/HTMLImports

[2] https://www.polymer-project.org/1.0/

Re:How Do the Google Web Projects Angular, Polymer and NG-Ma... by spankalee on Monday April 04, 2016 @11:52AM (#11422819)
You don't need the polyfills on Chrome.
Re:How Do the Google Web Projects Angular, Polymer and NG-Ma... by T-A on Tuesday April 05, 2016 @05:50AM (#11429150)
Sure, but as long as browser coverage looks like this,

http://caniuse.com/#search=components

you have to include the polyfills anyway, unless you are targeting something like Electron or an intranet where everybody is guaranteed to be using Chrome.

That's why I put "standard" in quotes; although it's been around for years, it's really only supported by one widely used browser.