can we include Angular custom controls inside Javascript file #3
-
hi, Our requirement is whether can we use Custom controls developed in Angular inside a HTML+Javascript and browser can load Angular controls inside the HTML and Javascript? #angular #customControls Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can not use custom controls developed in angular inside a plain HTML+Javascript project. Angular components are built using TypeScript, a superset of JavaScript, and require the Angular framework to be loaded in order to function properly. To use them in angular might require additional setup and configuration which I have no idea about. Instead, you can import the javascript and CSS library of the Chart control you are talking about. Here is an example of PopperJS installation in both angular and plain HTML+JS website. For Angular App
With npmnpm i @popperjs/core With Yarnyarn add @popperjs/core For HTML+JS website
Note |
Beta Was this translation helpful? Give feedback.
You can not use custom controls developed in angular inside a plain HTML+Javascript project. Angular components are built using TypeScript, a superset of JavaScript, and require the Angular framework to be loaded in order to function properly. To use them in angular might require additional setup and configuration which I have no idea about. Instead, you can import the javascript and CSS library of the Chart control you are talking about. Here is an example of PopperJS installation in both angular and plain HTML+JS website.
For Angular App
With npm
npm i @popperjs/core
With Yarn
yarn add @popperjs/core
For HTML+JS website