如何将Angle 2组件转换为WebComponents? [英] How can I convert angular 2 components to webcomponents?

查看:37
本文介绍了如何将Angle 2组件转换为WebComponents?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Angle 2的新手,并构建了一些组件.有没有办法将这些组件转换为webcomponents?有没有一种方法可以先将其转换,然后再在其他(非矩形)Web应用程序中提供以供重用?

I am new to angular 2 and built a few components. Is there a way to convert those components to webcomponents ? Is there a way to transpile this first and then made available in other (nonangular) web applications for reuse?

推荐答案

您可以在Angular2中使用Web组件(有一些限制),但是无法以任何方式自动进行转换或转换.

You can use web components in Angular2 (with some limitations) but there is no way to transpile or convert it automatically in any way.

这篇关于如何将Angle 2组件转换为WebComponents?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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