I have installed Jquery and Jquery-ui
npm install --save jquery jquery-ui
The files are in the node_modules directory. I have a component t
The solution to define jquery-ui in angular-cli.json (and avoid to add it in index.html) is:
1 : Import jquery-ui-dist
npm install jquery jquery-ui-dist
2: Add scripts in angular-cli.json
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/jquery-ui-dist/jquery-ui.js"
],
Source : https://stackoverflow.com/a/38795318