PrimeNG has a component called Steps, which indicates the steps in a workflow. The usage is simple:
<p-steps [model]="items" [(activeIndex)]="activeIndex"></p-steps>
The model is a collection of objects of type MenuItem which we met in the Chapter 7, Endless Menu Variations. The property activeIndex points to an index of the active item (step) in the collection of items. The default value is 0 what means that the first item is selected by default. We can also make the items clickable by setting [readonly]="false".
Refer to the PrimeNG showcase to see Steps in action:
https://www.primefaces.org/primeng/#/steps
https://www.primefaces.org/primeng/#/steps
On basis of <p-steps>, we will implement a wizard like behavior with two custom components named <pe-steps> and <pe-step>. The prefix pe should hint at "PrimeNG extensions". The component <pe-steps> acts as container for multiple steps. The basic structure...