title: How to import JQuery UI to angular 8 Project
body: <p>I'm working on angular app in which i want to implement draggable. There were questions about that in the past but nothing works for me. What I tried:</p>
  
  <pre><code>npm install jquery jquery-ui
  </code></pre>
  
  <p>and then adding following lines to angular.json</p>
  
  <pre><code>"scripts": [
    "../node_modules/jquery/dist/jquery.min.js",
    "../node_modules/jquery-ui/jquery-ui.js"
  ]
  </code></pre>
  
  <p>and then importing it to my component like</p>
  
  <pre><code>declare let $: any; 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>import $ from 'jquery';
  </code></pre>
  
  <p>or</p>
  
  <pre><code>import $ from 'jquery';
  import 'jqueryui';
  </code></pre>
  
  <p>but I'm still getting error:</p>
  
  <blockquote>
    <p>TSLint: unused expression, expected an assignment or function call(no-unused-expression)</p>
  </blockquote>
  
  <p>when placing this line in ngOnInit:</p>
  
  <p><code>$('#draggable' as any).draggable;</code></p>