I am trying to implement Bloodhound.js into an Angular 2 project that is using Angular 2 CLI. At the moment I have jQuery working through the following methods:
npm install jquery --save
npm install @types/jquery --save-dev
Then adding '"../node_modules/jquery/dist/jquery.min.js"' to the scripts array in the angular-cli.json.
I have done the same for Bloodhound.js in the angular-cli.json as well with the following:
"../node_modules/bloodhound-js/dist/bloodhound.min.js"
However I get the following error:
Cannot find name 'Bloodhound'.
Is there a way to import the .js file directly or to add the import locally?