Scrollspy

bs-scrollspy wraps content with headings marked bsScrollspy and surfaces the currently visible section. Useful for sticky in-page navigation, table-of-contents highlights, or modal overlays.

Basic usage

Inside a modal

A modal scroll body is its own scroll container — wrap its contents in bs-scrollspy and the directive picks the modal as its nearest-scrolling-ancestor target.

Scrollspy inside a modal

Some colors

Primary

Secondary

Success

Danger

Some more colors

Warning

Info

Light

Dark