问题描述
我看到编写前端应用程序发生了变化,从MVC世界过渡到Web组件系统.但是Angular支持Web组件标准吗,我可以使用angular构建纯Web组件吗.
I see a change in writing frontend application, moving out from MVC world to web-component system. But does Angular support web component standards, can i build pure web-component using angular.
我发现聚合物是这项工作的库之一,但是无法在Angular中获得任何类似的东西.我们是打算在以后的版本中将这些标准作为Angular的一部分,还是需要在Angular中粘贴聚合物以编写与框架无关的Web组件(根据w3c标准)
I found polymer as one of the library for this work but not able to grab anything similar in Angular. Are we planning these standard to be part of Angular in later releases or we need to glue polymer in Angular for writing framework agnostic webcomponents (as per w3c standards)
推荐答案
您无法使用Angular构建Web组件.
这是一个早期目标,但后来却放弃了,因为它似乎不值得付出努力.
不过,您可以在Angular应用程序中使用Web组件.
You can't build web components with Angular.
That was an early goal but was later dropped because it didn't seem worth the effort.
You can use web-components in Angular applications though.
这篇关于Angular 2+中的WebComponent实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!