0

I'm trying to learn Angular 8 currently. I want to include external custom Javascript file in only specific component.html. What Configuration is need Configurations are needed for this?

3

1 Answer 1

0

Either you use a library that you could include in your component :

npm install my-library    
import * as myLibrary from 'my-library'

Or you could import your Javascript library in your angular.json file in the script section.

You can also refer to this post : How to add external js file in angular 6 library

Sign up to request clarification or add additional context in comments.

1 Comment

I was just answering,... Before being rude, you could have checked on Stack for an answer : stackoverflow.com/questions/48173259/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.