Skip to content

can we include Angular custom controls inside Javascript file #3

Answered by ziaKhan1995
HarishKCDVG asked this question in Q&A
Discussion options

You must be logged in to vote

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

  1. Package Manager

With npm

npm i @popperjs/core

With Yarn

yarn add @popperjs/core

For HTML+JS website

  1. CDN
<!-- Development version -->
<script src="h…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ziaKhan1995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants