AngularJS vs PolymerJS Testing

What is Angular?

Angular is a complete framework for building web apps. It has high-level APIs for things like services, routing, server communication.
Here are some features that Angular offers:

  1. Directives 
  2. Dependency injection
  3. Testing support
  4. Routing
  5. Services
  6. Server communication

What is Polymer?

Polymer is a library for creating Web Components, which are a set of W3C standards and upcoming browser APIs for defining your own custom HTML elements.
Here are some features that Polymer offers:

  1. Declare custom elements
  2. Widgets
  3. Polyfills for new web platform features
  4. Encapsulation for the DOM
  5. Built on emerging web standards

Even though Angular and Polymer aim to do different things, there is currently some overlap. Web components and Angular’s element directives are very similar, and if there’s a comparison to be made it should be between Polymer’s Custom Elements and Angular’s directives.

Summary - Angular, a MVC framework, and Polymer, polyfills and enhancements for custom elements built on top of Web Components, can live harmoniously in the same app.
But from a testing perspective its definitely angular that wins hands down with it's Protractor testing framework for AngularJS 


Post a Comment

Popular posts from this blog

XPATH for IE / internet explorer

RPA - Blue Prism, OpenSpan, Automation Anywhere vs UIPath