This demo shows how to use the NgbScrollSpyService.

Highlights current example on this page:

Local
@for (fragment of fragments; track fragment) {
{{ fragment }}
}
From 'root'
@for (fragment of fragments; track fragment) { {{ fragment }} }