I am trying to setup Popper.js to work with angular 5, without bootstrap or jquery. I tried following this https://github.com/FezVrasta/popper.js/#react-vuejs-angular-angularjs-emberjs-etc-integration, but it is not exactly a point A to B description for angular applications.
I installed Popper.js via npm
npm install popper.js --save
then I chose to bundle the esm module to my angular-cli scripts
"scripts": [
(...)
"../node_modules/popper.js/dist/esm/popper.js"
],
Since esm/popper.js exports Popper variable as follows.
var Popper = function () {
I figured that I would just declare the popper variable in my angular template like this
declare var Popper;
Alas, I had no luck with it.
Does anybody have ideas on how to correctly implement this?