title: Angular5 @nicky-lenaers/ngx-scroll-to component Service to Target
body: <p>I'm using a <a href="https://www.npmjs.com/package/@nicky-lenaers/ngx-scroll-to" rel="nofollow noreferrer">@nicky-lenaers/ngx-scroll-to</a> component to make a easy scroll to.</p>
  
  <p>I have create a plunker <a href="https://plnkr.co/edit/qonsQh6W8MFwX2WsKzDh?p=preview" rel="nofollow noreferrer">here</a> with 2 buttom:</p>
  
  <ol>
  <li>one use directive and work fine</li>
  <li><p>one use a service to target but not scroll (what's wrong?)</p>
  
  <pre><code>public triggerScrollTo() {
  
  const config: ScrollToConfigOptions = {
  container: 'custom-container',
  target: 'destination'
  };
  
  this._scrollToService.scrollTo(config);
  }
  </code></pre></li>
  </ol>