Implementing a custom wizard component with Steps

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:

On basis of <p-steps>, we will implement a wizard like behavior with two custom ...

Get Angular UI Development with PrimeNG now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.