KiraAG
KiraAG

Reputation: 783

Use of Angular elements inside angular app

I would like to use angular elements for widgets here.

I went through the angular.io example and also angular-aio-src

I am missing something here. Here is the demo.

I am getting this error :

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

All the examples I have seen , are created as separate modules/ manual bootstrapping is done to embed that module. But I am trying something like angular aio does. load angular elements lazily with AppComponent bootstrapped. Not sure whats going wrong here?

Upvotes: 0

Views: 706

Answers (1)

user1748379
user1748379

Reputation: 53

import javascript in index.html

<script src="https://unpkg.com/@webcomponents/[email protected]/custom-elements-es5-adapter.js"></script>

But see this link https://www.npmjs.com/package/ngx-build-plus

Upvotes: 1

Related Questions