RequireJs with Ionic framework


#1

I want to use the speedtest.net in my ionic application.

$ npm install speedtest-net

and i want to use the below code but I donot know how to use the require js with Ionic.

var speedTest = require('speedtest-net');

speedTest.visual({maxTime: 5000}, function(err, data) {
  console.dir(data);
});

Please guide me…