I’ve just started a new Ionic project in which I want to make requests to the Amazon Product API. I chose to work with this node module.
But I’m having trouble including the module in my Ionic project. I bundled it with Browserify and included the bundle in the index.html. Then I tried to use it in my controller:
amazon = require('amazon-product-api');
But I’m always getting this error:
Can't find variable: require
Any idea what I can do to make it work?
Thanks in advance for your help!