Ionic 2 : Installing a package with NPM


#1

Hi all,

I’d like to use Numeral.JS with an Ionic 2 project. I have installed it via

npm install numeral

from this stage how do I go about referencing it in, for example, a component I’ve made? Is that actually possible for general use NPM packages, or does it only work for those specifically made for Angular2 ?

Thanks as always!


#2

Next step would probably be to install typings for it. Looks like only ambient ones are available at the moment, so

$ typings i -G dt~numeraljs