title: How to install and use jquery in ionic 2?
body: <p>How to install and use jquery in ionic 2? I use <a href="https://ionicframework.com/docs/v2/resources/third-party-libs/" rel="nofollow noreferrer">ionic documentation for using third party libs</a> for it.</p>
  
  <p>I have followed these steps:</p>
  
  <ol>
  <li>npm install @types/jquery --save - it is OK</li>
  <li>npm install @types/jquery-mask-plugin --save - it is OK</li>
  <li><p>Add in <strong>declarations.d.ts</strong> file:</p>
  
  <p>declare module 'jquery';
  declare module 'jquery-mask-plugin';</p></li>
  </ol>
  
  <p>But when I try to compile app, I got a Error:</p>
  
  <pre><code>Runtime Error
  Cannot find module "jquery"
  </code></pre>
  
  <p>In tsconfig file:</p>
  
  <pre><code>{
    "compilerOptions": {
      "allowSyntheticDefaultImports": true,
      "declaration": false,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "lib": [
        "dom",
        "es2015"
      ],
      "module": "es2015",
      "moduleResolution": "node",
      "sourceMap": true,
      "target": "es5"
    },
    "include": [
      "src/**/*.ts"
    ],
    "exclude": [
      "node_modules"
    ],
    "compileOnSave": false,
    "atom": {
      "rewriteTsconfig": false
    }
  }
  </code></pre>
  
  <p>What is wrong?</p>