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
Check this repo. It has an example for underscore
https://github.com/angular/angular-cli/wiki/3rd-party-libs#adding-underscore-library-to-your-project
I did this on my imports to make it work
//Place this at the top near your imports
///
import {Injectable} from '@angular/core';
import {Http} from '@angular/http';
import * as _ from 'underscore';
Make sure you have the right reference path to underscore typings.