thisissoon / angular-scrollspy

A simple lightweight library for Angular which automatically updates links to indicate the currently active section in the viewport
MIT License
35 stars 15 forks source link

Angular ScrollSpy doe not work for me #22

Open tiga05 opened 4 years ago

tiga05 commented 4 years ago

Hello,

Tried to use your cool module. But for some reason, it is not working. Also not with a clean new angular project. So I tried the demo app in the src folder and this works.

I started to debug a little bit around. And it looks like this.items which normally holds the amount of navbar items (means: all items which have the snScrollSpyItem directive) is always empty. Your basic project shows me it should not.

So what am I doing wrong?

I am using angular 9.1.0 and Nodejs 12.16.1

I attached my example project. Just unzip it, run npm install and ng serve! test3.zip

francardoso93 commented 4 years ago

I think it isn't working for Angular 9.x .. It stoped working for me when I've updated my project

akbarsaputrait commented 3 years ago

Is there any solutions for this issue?