navigation/table-of-contents/src/lib/table-of-contents/table-of-contents.component.ts
Table of contents component for navigating between different sections on a page
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | hra-table-of-contents |
| imports |
HraCommonModule
MatRippleModule
RouterModule
ScrollingModule
|
| templateUrl | ./table-of-contents.component.html |
| styleUrl | ./table-of-contents.component.scss |
Properties |
|
Inputs |
| tagline | |
Default value : 'On this page'
|
|
|
Title for the table of content |
|
| Protected Readonly activeSection |
Type : unknown
|
Default value : inject(PageSectionActivationService).activeSection
|
|
Currently active section |
| Protected Readonly sections |
Type : unknown
|
Default value : inject(PageSectionService).sortedSections
|
|
All page sections sorted by dom order |