Google Polymer and ANGULARJS (2016)

2

Good afternoon. Does anyone here use Google Polymer? If so, do you have any experience to tell about its possible integration with AngularJS?

According to Angular himself: "The key feature of Angular JS 2.0 is its support for Web Components [1]. Google's Polymer is a Web Component polyfill (enabling them on all current browsers) and the framework on top of Web Components."

    
asked by anonymous 02.07.2016 / 16:30

1 answer

2

I use Polymer and I see no need to use Angular and explain why. To understand this we must answer the question:

How are AngularJS 2.0 and Polymer related?

Direct answer: they are not related.

Angular 2.0 was fully rewritten to support web-components using a proprietary approach with angular directives. You do not need Polymer to create web-components in Angular 2.0 but it's not so trivial to do so.

On the other hand Polymer makes it much easier to create web-components with their polyfills.

Angular is a JavaScript Framework with MVC support.

Polymer is an API for web-component. The advantage I see in Polymer is the integration with the DOM where you can create components inheriting from native HTML elements and also by the huge range of elements already in existence. Polymer adoption is increasing a lot within Google that has standardized Material Design on Android and Polymer supports dozens of components with this visual / behavioral paradigm. In addition, the Google Chrome team is working closely with the Polymer team to natively support the HTML5 features used in Polymer.

The strength of AngularJS is its widespread adoption among developers and is practically the most mature javascript framework in existence today, but most of the existing code is version 1.x that does not use web-component.

Some interesting features of Angular 2 are: Dependency Injection, Templating, Annotations, Scaffolding and Touch Routing.

Polymer Advantages Can Be Seen Here

    
05.07.2016 / 22:54