Chrome Web Components:需要聚合物吗? [英] Chrome Web Components: Polymer needed?

查看:55
本文介绍了Chrome Web Components:需要聚合物吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解Chrome在Web组件要求方面正变得越来越完善.

I understand Chrome is becoming complete in terms of Web components requirements.

这是否意味着不再严格要求聚合物?

Does that mean Polymer is no longer strictly needed?

推荐答案

要明确的是,当浏览器提供本机支持时,platform.js层(polyfills)消失了,但是polymer.js(位于顶层的糖化层) Web组件),而元素不会.糖化是Polymer关于如何一起使用Web组件++技术的观点,并且这些元素通常是有用/可重用的组件.

To be clear, the platform.js layer (the polyfills) go away as native support becomes available in browsers, but polymer.js (sugaring layer on top of web components) and the elements will not. The sugaring is Polymer's opinion on how to use the web components++ tech together, and the elements are generally useful/reusable components.

这篇文章描述了聚合物的各个部分: Polymer元素和AngularJS指令?

This post describes the pieces of Polymer: What is the difference between Polymer elements and AngularJS directives?

今天,严格地讲,不包含platform.js polyfills就可以使用聚合物.由于本机Web组件支持一种浏览器,因此我们正在努力实现这一目标.我们还没到那儿,例如您仍然需要在Chrome 36中包含platform.js.

Today, it's not strictly true that you can use polymer without including the platform.js polyfills. We're working on making that possible now that there's one browser will native web components support. We're not quite there yet e.g. you still need to include platform.js in chrome 36.

这篇关于Chrome Web Components:需要聚合物吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆