title: Bootstrap 4 scrollspy excluding id's
body: <p>I have sections one after another, and in the middle of them I have aside without anchor leading to it. Problem is, that scrollspy is active with previous section. I would like to make scrollspy not showing anything active at that point and resume when next section with valid anchor will appear. I was trying solutions from <a href="https://stackoverflow.com/questions/13766381/exclude-id-in-twitter-bootstrap-scrollspy">Exclude ID in Twitter Bootstrap Scrollspy</a> but they seems not work in bootstrap 4, I can't even catch trigger, that suppose to work by doing:</p>
  
  <pre><code>$('#nav-links').on('activate.bs.scrollspy', function () { 
  // or $('#nav-links li').on('activate.bs.scrollspy', function () {
  // or $('#nav-links li').on('activate',  function(){
      alert('sdsd'); // no alert, but scrollspy is working
  })
  </code></pre>
  
  <p>How to make scrollspy work only when id's from navigation links are matching with id of an scrolling element, excluding other elements?</p>
  
  <p>a) (partial help) How to catch scrollspy firing events?</p>