Answer the question
In order to leave comments, you need to log in
How to connect js file to angular 2?
Hello.
Guys, such a problem.
It is necessary to connect a .js file with scripts to the angular 2 project.
Tell me who knows how to connect it.
Answer the question
In order to leave comments, you need to log in
If you want to include some library, then the best option is to install it using npm.
As a last resort, you can include your script as a regular script using a tag script
in your project's index.html. By default, it is located in the src/index.html folder. Here is an example of this file in my project https://github.com/Muffassa/angular2-crud/blob/mas...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question