Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
配置Angular 4以生成web组件_Angular_Web Component - Fatal编程技术网

配置Angular 4以生成web组件

配置Angular 4以生成web组件,angular,web-component,Angular,Web Component,对于一个项目,我需要以web组件的形式提供我的代码。 . 简单明了的问题:如何做到这一点?是否要在angular component模板中使用webcomponent?webcomponent是一个带有@component注释的类。那是all@Maximus否我想创建一个带有Angular的web组件,以便在Angular之外使用?如果是,你不能。Angular不是用于创建web组件的框架。看看polymer@PierreDuc你有一个例子吗?使用@Component似乎是创建角度组件的正常方法

对于一个项目,我需要以
web组件的形式提供我的代码。

. 简单明了的问题:如何做到这一点?

是否要在angular component模板中使用webcomponent?webcomponent是一个带有
@component
注释的类。那是all@Maximus否我想创建一个带有Angular的web组件,以便在Angular之外使用?如果是,你不能。Angular不是用于创建web组件的框架。看看polymer@PierreDuc你有一个例子吗?使用
@Component
似乎是创建角度组件的正常方法,但如何创建web组件?