M
M
Muxailo2017-09-27 21:01:24
JavaScript
Muxailo, 2017-09-27 21:01:24

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

1 answer(s)
N
Nikita Filatov, 2017-09-29
@M0NSTERC4T

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 question

Ask a Question

731 491 924 answers to any question