Angular PrimeNG Steps Events Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see the Steps Events in Angular PrimeNG. The Steps Component guides users through the steps of a task, i.e. it is used to indicate the step for completion of any specific task. Angular PrimeNG provides an event that is fired while opting for a new step. Angular PrimeNG Steps Events: activeIndexChange: It is a callback that is fired when the new step is selected.Syntax: <p-steps [model]="items of the steps" (activeIndexChange)="function($event)"> ... </p-steps>Creating Angular application & Module Installation: Step 1: Create an Angular application using the following command. ng new appnameStep 2: After creating your project folder i.e. appname, move to it using the following command. cd appnameStep 3: Install PrimeNG in your given directory. npm install primeng --save npm install primeicons --saveProject Structure: It will look like the following: Example 1: This example describes the basic usage of the Steps Events in Angular PrimeNG. app.component.html HTML <div id="GFG"> <h1 style="color:green"> GeeksforGeeks </h1> <h2>Angular PrimeNG Steps Events </h2> <div style="width:80%;"> <p-steps [model]="data" [activeIndex]="activeIndex" [readonly]="false" (activeIndexChange)="print($event)"> </p-steps> <p-toast position="left" key="left"> </p-toast> </div> </div> app.component.ts JavaScript import { Component } from '@angular/core'; import { ButtonModule } from 'primeng/button'; import { MessageService } from 'primeng/api'; @Component({ selector: 'app-root', templateUrl: './app.component.html', providers: [MessageService], }) export class AppComponent { constructor( private messageService: MessageService ) { } title = 'GFG'; activeIndex: number = 0; data = [ { label: 'I am Step 1' }, { label: 'I am Step 2' }, { label: 'I am Step 3' } ] public print(event: number) { this.messageService.add({ key: 'left', severity: 'success', summary: 'GeeksforGeeks', detail: 'Hi Geek.. I am called when step is clicked', }); } } app.module.ts JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { StepsModule } from 'primeng/steps'; import { RouterTestingModule } from "@angular/router/testing"; import { ButtonModule } from 'primeng/button'; import { ToastModule } from 'primeng/toast'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, StepsModule, RouterTestingModule, ButtonModule, ToastModule, BrowserAnimationsModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } Output: Example 2: This is another example that describes the Angular PrimeNG Steps Events, where we will display an alert when activeIndexChange event occurs. app.component.ts HTML import { Component } from '@angular/core'; import { ButtonModule } from 'primeng/button'; @Component({ selector: 'app-root', templateUrl: './app.component.html', }) export class AppComponent { title = 'GFG'; activeIndex: number = 0; data = [ { label: 'I am Step 1' }, { label: 'I am Step 2' }, { label: 'I am Step 3' } ] public print(event: number) { window.alert("Hi Geek!!Active Index Changed "+ "Called for Step " + (event + 1)) } } app.component.html HTML <div id="GFG"> <h1 style="color:green"> GeeksforGeeks </h1> <h2>Angular PrimeNG Steps Events </h2> <div style="width:80%;"> <p-steps [model]="data" [activeIndex]="activeIndex" [readonly]="false" (activeIndexChange)="print($event)"> </p-steps> </div> </div> app.module.ts JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { StepsModule } from 'primeng/steps'; import { RouterTestingModule } from "@angular/router/testing"; import { ButtonModule } from 'primeng/button'; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, StepsModule, RouterTestingModule, ButtonModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } Output: Reference: http://primefaces.org/primeng/steps/seat Comment More infoAdvertise with us Next Article Angular PrimeNG Steps Styling C cu17bcs1207 Follow Improve Article Tags : Technical Scripter Web Technologies AngularJS Technical Scripter 2022 Similar Reads MenuModel API ComponentAngular PrimeNG MenuModel API MenuItemAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use Angular PrimeNG MenuModel API MenuItem. MenuModel API: Prime 3 min read Angular PrimeNG MenuModel API MenuItemAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use Angular PrimeNG MenuModel API MenuItem. MenuModel API: Prime 3 min read Angular PrimeNG MenuModel API Custom ContentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use Angular PrimeNG MenuModel API Custom Content. In MenuModel A 3 min read Breadcrumb ComponentAngular PrimeNG Breadcrumb ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Breadcrumb component in Angular PrimeNG. We will also l 3 min read Angular PrimeNG Breadcrumb PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Breadcrumb Properties in Angular PrimeNG. The Breadcru 3 min read Angular PrimeNG Breadcrumb EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Breadcrumb Events in Angular PrimeNG. The Breadcrumb component 3 min read Angular PrimeNG Breadcrumb StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will learn how to style the Angular PrimeNG Breadcrumb Styling. The Breadcrumb Component offers the navig 4 min read ContextMenu ComponentAngular PrimeNG ContextMenu ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG ContextMenu PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease.  In this article, we are going to learn Angular PrimeNG ContextMenu Properties. The ContextMenu comp 4 min read Angular PrimeNG ContextMenu EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG ContextMenu StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Dock ComponentAngular PrimeNG Dock ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dock BasicAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dock Basic in Angular PrimeNG. The Dock Component in Angula 3 min read Angular PrimeNG Dock AdvancedAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dock Advanced in Angular PrimeNG. The Dock Component in 4 min read Angular PrimeNG Dock PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dock StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read MegaMenu ComponentAngular PrimeNG MegaMenu ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the MegaMenu component in Angular PrimeNG. We will also lea 4 min read Angular PrimeNG MegaMenu HorizontalAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the MegaMenu Horizontal in Angular PrimeNG. We will also learn 4 min read Angular PrimeNG MegaMenu VerticalAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the MegaMenu Vertical in Angular PrimeNG. We will also learn ab 4 min read Angular PrimeNG MegaMenu PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use MegaMenu Properties in Angular PrimeNG. The MegaMenu comp 4 min read Angular PrimeNG MegaMenu TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use Angular PrimeNG MegaMenu Templates. The MegaMenu component i 3 min read Angular PrimeNG MegaMenu StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this tutorial, we will learn how to style the MegaMenu component in Angular PrimeNG. Additionally, we will learn about the 5 min read Menu ComponentAngular PrimeNG Menu ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Menu component in Angular PrimeNG. We will also learn a 4 min read Angular PrimeNG Menu BasicAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Menu Basic in Angular PrimeNG. Angular PrimeNG Menu Basic i 3 min read Angular PrimeNG Menu OverlayAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Menu Overlay in Angular PrimeNG. Angular PrimeNG Menu Overl 3 min read Angular PrimeNG Menu SubMenusAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Menu Popup ModeAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Menu Popup Mode in Angular PrimeNG. The Menu Popup Mode can 3 min read Angular PrimeNG Menu Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Menu PropertiesAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see Angular PrimeNG Menu Properties. The Menu component is used to navigate the 4 min read Angular PrimeNG Menu EventsAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG Menu Events. The Menu component is used for navigatin 4 min read Angular PrimeNG Menu StylingA responsive website may be easily created using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will learn how to style the Menu Component in Angular PrimeNG. A component that holds information and allows both s 4 min read Menubar ComponentAngular PrimeNG Menubar ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Menubar component in Angular PrimeNG. We will also lear 3 min read Angular PrimeNG Menubar Custom ContentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Menubar Custom Content in Angular PrimeNG. We will also lea 3 min read Angular PrimeNG Menubar PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use Menubar Properties in Angular PrimeNG. We will also learn 4 min read Angular PrimeNG Menubar TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know about Angular PrimeNG Menubar Templates The Menubar component is used 3 min read Angular PrimeNG Menubar StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read PanelMenu ComponentAngular PrimeNG PanelMenu ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the PanelMenu component in Angular PrimeNG. We will also le 4 min read Angular PrimeNG PanelMenu Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG PanelMenu PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the PanelMenu Properties in Angular PrimeNG. We will also 4 min read Angular PrimeNG PanelMenu StylingThe open-source Angular PrimeNG framework is used to create responsive websites with great simplicity and has a large set of native Angular UI components that are utilized for superb style. In this article, we will learn how to style the PanelMenu Component in Angular PrimeNG using its styling class 4 min read SlideMenu ComponentAngular PrimeNG SlideMenu ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the SlideMenu component in Angular PrimeNG. We will also lea 5 min read Angular PrimeNG Slide Menu BasicAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use SlideMenu Basic in Angular PrimeNG. SlideMenu component is u 3 min read Angular PrimeNG Slide Menu PopupAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the SlideMenu Popup in Angular PrimeNG. SlideMenu component 4 min read Angular PrimeNG Slide Menu EffectsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Slide Menu Effects in Angular PrimeNG. We will also lea 3 min read Angular PrimeNG Slide Menu Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Slide Menu PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use SlideMenu Properties in Angular PrimeNG. We will also learn 5 min read Angular PrimeNG Slide Menu StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Steps ComponentAngular PrimeNG Steps ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Steps component in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Steps ReadonlyAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Steps Readonly in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Steps PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Steps Properties in Angular PrimeNG. We will also lear 3 min read Angular PrimeNG Steps EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see the Steps Events in Angular PrimeNG. The Steps Component guides users t 3 min read Angular PrimeNG Steps StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see the Angular PrimeNG Steps Styling. The Steps Component guides users th 3 min read Like