title: Using Smooth Scroll Polyfill with Angular 2 CLI
body: <p>Can anyone please guide how to use Smooth Scroll Polyfill with <strong>Angular 2 CLI</strong>.</p>
  
  <p>I tried adding below to <strong>polyfills.ts</strong> but it throws error on work require</p>
  
  <pre><code>require('smoothscroll-polyfill').polyfill();
  </code></pre>
  
  <p>I then tried adding</p>
  
  <pre><code>import 'smoothscroll-polyfill';
  </code></pre>
  
  <p>Though it didn't throw any error during build but when I run the project in browser it show below error on console:</p>
  
  <pre><code>ERROR TypeError: Failed to execute 'scroll' on 'Window': No function was found that matched the signature provided.
  </code></pre>