角度元素和模具的技术概念 [英] Technical concepts of Angular Elements and Stencil

查看:90
本文介绍了角度元素和模具的技术概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Angular Elements Stencil 的技术概念是否相似?

Are the technical concepts of Angular Elements and Stencil similar?

Angular Elements 将是Angular 6中的一项新功能,您基本上可以将编写的Angular组件包装为Web组件.以我的理解,生成的自定义元素只是通向Angular的桥梁,因此我们仍然必须交付Angular.

Angular Elements will be a new feature in Angular 6, where u can basically wrap your written Angular component as a Web Component. In my understanding the generated Custom Element is just a bridge to Angular, so we still have to ship Angular.

模具声称是生成Web组件的编译器.因此,生成的自定义元素不仅是通往某些事物的桥梁吗?

Stencil, on the other side, claims to be a compiler that generates Web Components. So the generated Custom Element is not just a bridge to something?

我说对了吗?

推荐答案

您不必像所提到的那样交付Angular. Angular Elements将使我们能够无需使用整个Angular生态系统中的Angular组件.因此,如果您有React应用程序或VueJS应用程序,则可以使用Angular元素(感谢自定义元素),然后将其放入这些应用中即可.

You shouldn't have to ship Angular as you put it. Angular Elements will allow us to use Angular components without the whole Angular Ecosystem. So if you had a React app or a VueJS app, you could take your Angular Element (thanks to Custom Element) and just plop it into those apps.

Rob Wormald与ng-conf上的所有代表进行了酷谈今年.我会检查一下最新信息.

Rob Wormald did a cool talk about them with all the deets at ng-conf this year. I'd check that out for the latest info.

这篇关于角度元素和模具的技术概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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