title: Ngx-Perfect-Scrollbar not working
body: <p>I have been trying to make the <code>ngx-perfect-scrollbar</code> work. I have installed the library using </p>
  
  <pre><code>npm install ngx-perfect-scrollbar --save
  </code></pre>
  
  <p>after that I have added the dependency into my <code>app.module.ts</code>. But when i run the app it gives error</p>
  
  <blockquote>
    <p>Object(...) is not a function</p>
  </blockquote>
  
  <p>I don't know what I am doing wrong here. All the steps have been followed as per in github repo.</p>
  
  <p><a href="https://i.stack.imgur.com/ugGCY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ugGCY.png" alt="This is the error that I am seeing "></a> </p>
  
  <p>Error is generated from line number 126</p>
  
  <p><a href="https://i.stack.imgur.com/Vi1fi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vi1fi.png" alt="ngx-perfect-scrollbar file code"></a> </p>
  
  <p>This is my html file </p>
  
  <pre><code>&lt;div class="ps" style="position: relative; max-width: 600px; max-height: 400px;" [perfectScrollbar]="config"&gt;
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
   &lt;/div&gt;
  </code></pre>