nav[td-steps]
element generates a stepper to be used with Angular Router navigation. Steps can use as an anchor with routerLinks to allow to navigate to new pages.
The horizontal
version of this component handles responsiveness by adding scrolling buttons when the width of the container is less than its content.
td-step-link
element generates an individual step component.
Import the [CovalentStepsModule] in your NgModule:
import { CovalentStepsModule } from '@covalent/core/steps'; @NgModule({ imports: [ CovalentStepsModule, ... ], ... }) export class MyModule {}
Example Horizontal:
<nav td-steps horizontal> <a td-step-link routerLinkActive #rla="routerLinkActive" [routerLinkActiveOptions]="{exact:true}" [routerLink]="['/route1']" [label]="'1st step'" [sublabel]="'some description'" [active]="rla.isActive"></a> <a td-step-link routerLinkActive #rla2="routerLinkActive" [routerLinkActiveOptions]="{exact: true}" [routerLink]="['/route2']" [label]="'2nd step'" [active]="rla2.isActive"></a> </nav>
Example Vertical:
<nav td-steps vertical> <a td-step-link routerLinkActive #rla="routerLinkActive" [routerLinkActiveOptions]="{exact:true}" [routerLink]="['/route1']" [label]="'1st step'" [sublabel]="'some description'" [active]="rla.isActive"></a> <a td-step-link routerLinkActive #rla2="routerLinkActive" [routerLinkActiveOptions]="{exact: true}" [routerLink]="['/route2']" [label]="'2nd step'" [active]="rla2.isActive"></a> </nav>