I trying to create an application with angular 2,and want use underscore.js library in my .ts files ,for example when i want use this function :
let myId
You have to Add TypeScript Definitions for Underscore:
tsd install underscore
Configure SystemJS
System.config({ [...] paths: { underscore: './node_modules/underscore/underscore.js' } });
Finally import the Module
import * as _ from 'underscore';