title: How to setup and use the yOffset property of $anchorScroll in AngularJS
body: <p>I use the <code>$anchorScroll</code>-service in AngularJS. It works fine. But I have a fixed navigation bar at the top and the scrolling location goes always x-pixels to far.</p>
  
  <p>Now in the <a href="https://docs.angularjs.org/api/ng/service/$anchorScroll" rel="noreferrer"><code>$anchorScroll</code> documentation</a> there is a property called <code>yOffset</code>. According to the documentation it should fix my problem.</p>
  
  <p>I don't know how to use this yOffset-property however, because this specific part has no example.</p>
  
  <p>How can I use the <code>yOffset</code>-property of the <code>$anchorScroll</code>-service?</p>