Polymer 2.0 guarantees quite enhanced ECMAScript 6 models support and interoperability with different libraries and structures.
Polymer, Google's open source JavaScript library for building reusable HTML components, has graduated to adaptation 2.0, a noteworthy amendment that enhances the information framework, interoperability with other web libraries and systems, and support for ECMAScript 6 benchmarks. ECMAScript is the official determination basic JavaScript and actualized in web programs.
Arriving almost two years after Polymer 1.0, the 2.0 discharge agrees to HTML custom components v1, for making new HTML labels, and shadow DOM v1, for independent web parts. Engineers can now draw on Polymer APIs related with both determinations. Polymer 2.0 utilizations standard ECMAScript 6 classes and custom components v1 strategies as opposed to a Polymer manufacturing plant technique, as indicated by discharge notes. Engineers can blend Polymer highlights with standard JavaScript, in spite of the fact that the processing plant strategy is as yet bolstered by means of a similarity layer.
"Polymer 2.0 depends on web stage norms that are locally bolstered on more than 1 billion cell phones," Google's Wendy Ginsberg, extend administrator for Polymer, said at the current Google I/O gathering in Silicon Valley. The overhaul is one-quarter the extent of Polymer 1.0, she said. Web parts worked with rendition 2.0 are interoperable naturally, which means they can be utilized as a part of prominent JavaScript systems.
Changes to the information framework make it less demanding to troubleshoot the proliferation of information crosswise over components. More straightforward exhibit taking care of is included alongside bunched information changes, which can enhance execution and rightness.
Polymer 2.0 expels the need to utilize Polymer.dom for DOM control, making it simpler to utilize Polymer parts with other web advancement libraries and structures. Moreover, shady DOM code has been repackaged into a reusable polyfill, rather than being coordinated into Polymer.
For moving from Polymer 1.0, Polymer 2.0 elements a retrogressive similarity layer that permits components composed with the 1.0 API to focus on the 2.0 API and local program highlights. A mixture design enables engineers to port components to a typical subset of elements in Polymer 1.0 and Polymer 2.0. Those components can keep running in applications focusing on either form of the library, as per Google. Take note of that some minor layout changes may likewise be required for relocation.
Polymer 2.0 additionally transports with an enhanced polyfill loader that heaps just the fundamental polyfills for an individual program, bringing about a decrease in payload. Google's objective behind Polymer is to help engineers fabricate Progressive Web Apps, which are centered around giving a more local like application experience, working with different frame variables and programs.
No comments:
Post a Comment