-1

Is it possible to reference a remotely hosted js file in angular-cli.json ?

I tried including the path in the angular-cli.json, but its throwing error while compiling

if its not possible to include it in angular-cli.json, is there any other way to include a remotely hosted js file to be used in a component ?

1 Answer 1

1

You can include it in a <script> tag in de index.html file.

for more information have a look at this post

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

Comments

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.