我有一个Angular元素,使用自定义标记名称-
我尝试了以下方法,但都没有成功-
fancy-button
。如何在Angular应用程序中嵌入 fancy-button
?我尝试了以下方法,但都没有成功-
在
index.html/angular.json[scripts]
中导入angular-element脚本,并将fancy-button
嵌入app.component.html
(在Angular应用程序中运行的根组件)在
app.component.html
中导入angular-element脚本,并将fancy-button
嵌入app.component.html
(在Angular应用程序中运行的根组件)
angular.json
的scripts
中怎么样? - Chau Tran