Using an existing js library (jQuery) in ionic 2

I would suggest you to check if this library is available on NPM and add it as dependency in such case. Otherwise you can add the files in a new directory under www (e.g. lib) and then create a gulp task to copy them to the build folder, as @xr0master suggested. You can find a sample implementation in the linked post:

Then you can just include the resulting file and use the API in your project.

You might also need to install type definitions for the libraries as well.

1 Like