title: jQuery not working in angular 4
body: <p>I have tried running the following npm install but it doesnt fix anything.
   npm install jquery --save 
   npm install @types/jquery --save-dev</p>
  
  <p>I have added  "scripts": ["../node_modules/jquery/dist/jquery.min.js"],  in .angular-cli.json file.</p>
  
  <p><strong>app.component.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  declare var $:any;
  
  
  @Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
  })
  
  export class AppComponent {
  
  title = 'jQuery works!';
  
  
         onToggle(){
  
  $('.test').slideToggle();
  
         }
  
  }
  </code></pre>
  
  <p>Error: $ is not defined</p>