I want to wrap some jQuery code in an Angular2 directive.
I installed jQuery library for Typings into my project with the following command:
typings in
Step 1: get jquery in your project
npm install jquery
Step 2: add type for jquery
npm install -D @types/jquery
Step 3: Use it in your component!
import * as $ from 'jquery';
Ready to use $!