From the course: Learning the Angular CLI

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Adding JavaScript libraries

Challenge: Adding JavaScript libraries - Angular Tutorial

From the course: Learning the Angular CLI

Start my 1-month free trial

Challenge: Adding JavaScript libraries

(upbeat music) - [Instructor] In addition to adding application assets or CSS libraries, you can also easily add JavaScript libraries. This is useful in situations where you have legacy libraries, libraries written in ES5 that have not been ported to ES modules, and libraries that add their namespace to the global scope. In this challenge, I would like you to add this library to your Angular application. You will see that the usage of this library requires you to globally load the particle.js file. Take a look at the Angular CLI documentation at this URL to see how you can do that. The library is available on MPM, so can install it and have it available in your node modules.

Contents