import {Component, ElementRef, OnInit} from \'angular2/core\';
declare var jQuery:any;
@Component({
selector: \'jquery-integration\',
templat
What I do to solve this issue:
For library doesn't support @types/
and library need to load when document loaded (mean libraries need to add in script tag of document)
npm install jquery --save
Add js/css files in scripts
or styles
of angular-cli.json
like
"scripts": ["../node_modules/path to file", "./assets/path to file"]
For library supported @types/
, just run npm install @types/jquery --save-dev
To use the library, add declare var jQuery: any;
before annotation @Directive
or @Component
want to use the lib
P/S: I use angular-cli
with webpack
in my project, maybe different with systemjs