Answer: How to use bootstrap scrollspy on angular 7 project?

rnagarajan96

Nagarajan R

Posted on September 15, 2020

Answer: How to use bootstrap scrollspy on angular 7 project?

check the solution here using a directive for spyScroll. It listens to scroll event on the page and highlights the current section in view.

import { Directive, Injectable, Input, EventEmitter, Output, ElementRef, HostListener } from '@angular/core';

@Directive({
    selector: '[scrollSpy]'
})
export class ScrollSpyDirective {
    @Input() public spiedTags = [];
💖 💪 🙅 🚩
rnagarajan96
Nagarajan R

Posted on September 15, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related