angular-table-contents

1.1.1 • Public • Published

Angular Contents

npm Version

Angular Table of Contents that follow you while you scroll down. This project is inspired by zurfyx.github.io/angular-contents

Install

npm install angular-table-contents

For further ngx-page-scroll configuration, such as scroll speed, you should check their own repository.

[Advanced] Scrolling view

By default, Angular Contents will use the window or document as the scrolling view. That means that the inner content will update according to the changes in such elements.

More technically, the scrolling view is the one that triggers scrolling events and from which the relative offset is measured. If the scrolling view is set to a div instead, only once the div gets scrolled the Table of Contents will trigger an update.

By using the special binding [scrollingView], you can set the scrolling container of your choice instead of the default one.

License

MIT © Gerard Rovira Sánchez

Package Sidebar

Install

npm i angular-table-contents

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

33.3 kB

Total Files

30

Last publish

Collaborators

  • dorian0075