代码之家  ›  专栏  ›  技术社区  ›  KiraAG

在Angular应用程序中使用角元素

  •  0
  • KiraAG  · 技术社区  · 7 年前

    我想在这里为小部件使用角度元素。

    我经历了 angular.io example angular-aio-src

    我错过了一些东西。这是 demo .

    Component ContentNotAvalilableComponent is not part of any NgModule or the module has not been imported into your module.

    我看到的所有示例都是作为单独的模块创建的/手动引导是为了嵌入该模块而完成的。但我正在尝试一些像angular aio那样的东西。使用AppComponent引导延迟加载角度元素。不知道这里出了什么问题?

    1 回复  |  直到 7 年前
        1
  •  1
  •   user1748379    7 年前

    javascript导入索引.html

    <script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/custom-elements-es5-adapter.js"></script>
    

    https://www.npmjs.com/package/ngx-build-plus

    推荐文章