Import Crypto-js in ionic2

I found a way that’s working on my app. I don’t know if it’s the best way (I’m fairly new to Angular2/Ionic2), but it is working.
First I ran
> npm install crypto-js --save

then in the file that I wanted to use it in I

export class EncryptionService {
CryptoJS = require(‘crypto-js’);
constructor( ){
console.log(“CryptoJS:”, this.CryptoJS);
}
}

This gave the following output in the console

It seems to be working so far! Hope this helps!