D
D
Dmitry Gavrilenko2016-11-19 12:01:38
Angular
Dmitry Gavrilenko, 2016-11-19 12:01:38

How to use third party js libraries?

Shalom guys.
There is a project on Angular 2. The logic is ready, it remains to file the pug. For this, the Foundation CSS Framework was chosen. For all sorts of cool stuff, Foundation uses JQuery and its own library. In order for everything to work (Foundation puffs), attributes are used in the markup - a la directives in Angular2. Good story...
Question 1: how to use ( without customization ) JS libraries in Angular2? Same JQuery? Staying in the old tradition on JS files? How to do this more intelligently using npm, for greater compatibility.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2016-11-19
@vitali1995

stackoverflow.com/questions/30623825/how-to-use-jq...

npm install --save jquery
npm install --save @types/jquery

Look for the rest of the modules on npm, you will have to adapt your own one way or another. If you need Angular along with JavaScript, you should probably look at the first version of the framework: AngularJS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question