Topic: MDBScrollSpy not working with dynamic variables

skota pro asked 4 years ago

Expected behavior static data is working fine.

section mdbScrollSpyElement="scrollspy4" id="section1" class="p-5 blue lighten-4"

Actual behavior

Dynamic data is not working.

section ngFor... mdbScrollSpyElement="scrollspy4" id="section*{{x}}**" class="p-5 blue lighten-4"

Resources (screenshots, code snippets etc.)

enter image description here


enter image description here

Not Working

enter image description here

Arkadiusz Idzikowski staff commented 4 years ago

Could you show the example ts code as well? What exactly do you add here section2{{x} and when this variable is updated?

Is id of mdbScrollSpyElement the same as id of 'mdbScrollSpyLink`?

Scrollspy is Pro component and according to our system, you use MDB Free version. Please send the order number to so we can fix that.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.7.0
  • Device: Mac book pro
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: No
  • Provided link: Yes