@remiprivet wrote:
Hey all,
I just start with Ionic 2 and Angular 2, and I wanted to know how I can add the underscore.js ( http://underscorejs.org/ ) library to use it in my app ?
At the moment, I installed it using npm (in Ionic 1 I made it work with bower), doing
npm install underscore --save
I can see the dependency in package.json, but can't make it work in the app...
I have the following error :ORIGINAL EXCEPTION: ReferenceError: _ is not defined
How can I inject it ? (This question will be also useful for me for other extern libraries)
Thanks by advance
Posts: 2
Participants: 2