Angular PrimeNG Form Password Properties Component Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Angular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. This article will discuss the Angular PrimeNG Form Password Properties Component. The Password Component is used to take the input of sensitive information like passwords, credit/debit card CVV, etc from the user. When it is in focus a password strength indicator is shown to the user. All the properties of the Password component are listed below. Angular PrimeNG Form Password Properties: promptLabel: It specifies the text to prompt password entry. It is shown below the password strength meter. It is a string type & the default value is null.mediumRegex: It specifies the regex for medium password strength. It is of string type & the default value is "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})".strongRegex: It specifies the regex for string password strength. It is of string type & this defaults to "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})".weakLabel: It is the label to show when the entered password is weak. It is a string type & the default value is null.mediumLabel: It is the label to show when the entered password is of medium strength. It is a string type & the default value is null.strongLabel: It is the label to show when the entered password is strong. It is a string type & the default value is null.feedback: It specifies whether to show the password strength meter or not. It is a boolean type & the default value is true.toggleMask: If this is set to true an icon will be shown to see the password as plain text. It is a boolean type & the default value is false.appendTo: It accepts the ID of an element or "body" for the document to which the overlay should be appended to. It is a string type & the default value is null.inputStyle: It is the inline style for the password input field. It accepts any type of data & the default value is null. inputStyleClass: It is the style class for the input field. It is a string type & the default value is null.inputId: It is the ID for the accessible input element. It is a string type & the default value is null.style: It is the inline style of the password component. It is a string type & the default value is null.styleClass: It is the style class of the password component. It is a string type & the default value is null.placeholder: It specifies the placeholder string for the password input. It is a string type & the default value is null.label: It specifies the input label for accessibility. It is a string type & the default value is null.ariaLabel: It is a string that labels the input for accessibility. It is a string type & the default value is null.ariaLabelledBy: It specifies more than 1 ID in the DOM that labels the input field. It is a string type & the default value is null.showClear: It specifies whether to show a clear icon button for the password or not. It is a boolean type & the default value is false.  Syntax: <p-password placeholder="..." [showClear]="..." [toggleMask]="..." promptLabel="..." weakLabel="..." mediumLabel="..." strongLabel="..." [inputStyle]="..." ... [(ngModel)]="..."> </p-password>Creating Angular Application and Installing the Module: 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: Finally, Install PrimeNG in your given directory. npm install primeng --save npm install primeicons --saveProject Structure: The project Structure will look like this after following the above steps: Project StructureExample 1: This example illustrates the use of the promptLabel, weakLabel, mediumLabel, and strongLabel properties to customize the label of the password accordingly. app.component.html HTML <h2 style="color: green;">GeeksforGeeks</h2> <h3> Angular PrimeNG Form Password Properties Component </h3> <h4>Default Password Component</h4> <p-password placeholder="Enter the password" promptLabel="Choose a password" weakLabel="The password is weak" mediumLabel="The password is medium" strongLabel="The password is strong" [(ngModel)]="password1"> </p-password> app.component.ts JavaScript import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], }) export class AppComponent { password1?: string; } app.module.ts JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { FormsModule } from '@angular/forms'; import { DividerModule } from 'primeng/divider'; import { PasswordModule } from 'primeng/password'; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, FormsModule, DividerModule, PasswordModule ], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule { } Output:  Example 2: This example used the showClear, placeholder, inputStyle, and toggleMask properties of the password component to render the show/hide password icon, change input style, show a clear icon button, etc. app.component.html HTML <h2 style="color: green;">GeeksforGeeks</h2> <h3> Angular PrimeNG Form Password Properties Component </h3> <p-password placeholder="Enter the password" [showClear]="true" [toggleMask]="true" [inputStyle]="{'border-color': 'green'}" [(ngModel)]="password1"> </p-password> app.component.ts JavaScript import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], }) export class AppComponent { password1?: string; } app.module.ts JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { FormsModule } from '@angular/forms'; import { PasswordModule } from 'primeng/password'; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, FormsModule, PasswordModule ], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule { } Output:  Reference: http://primefaces.org/primeng/password Comment More infoAdvertise with us V vpsop Follow Improve Article Tags : Technical Scripter Web Technologies AngularJS Technical Scripter 2022 Angular-PrimeNG PrimeNG-Form +2 More Similar Reads AutoComplete ComponentAngular PrimeNG Form AutoComplete Dropdown 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. This article will show us how to use TreeTable Column Resize in Angular PrimeNG. AutoComplete Dropdo 11 min read Angular PrimeNG Form AutoComplete Multiple Selection 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. This article will show us how to use TreeTable Column Resize in Angular PrimeNG. AutoComplete Multip 15+ min read Angular PrimeNG Form AutoComplete Objects 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. This article will show us how to use Form AutoComplete Objects Component in Angular PrimeNG. Form Au 15+ min read Angular PrimeNG Form AutoComplete Force Selection 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. This article will show us how to use TreeTable Column Resize in Angular PrimeNG. Form AutoComplete F 15+ min read Angular PrimeNG Form AutoComplete Templating 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 the Form AutoComplete Templating Component in Angular PrimeNG. The Form 4 min read Angular PrimeNG Form AutoComplete Animation Configuration ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that helps to create an attractive user interface with enhanced functionality. These components can be utilized for great styling & are used to make responsive websites with very much ease. In this articl 5 min read Angular PrimeNG Form AutoComplete Properties 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 the Form AutoComplete Properties Component in Angular PrimeNG. The Form 8 min read Angular PrimeNG Form AutoComplete Templates ComponentAngular PrimeNG is an open-source front-end UI framework developed by PrimeTek for developing efficient and scalable angular applications. Using PrimeNG in their projects helps developers to cut down the development time and focus on other important areas of the application. In this article, we will 15+ min read Angular PrimeNG Form AutoComplete Styling 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 about Angular PrimeNG Form AutoComplete Styling Component. The Form Au 4 min read Calendar ComponentAngular PrimeNG Form Calendar Popup and Inline ComponentAngular PrimeNG is a collection of UI components for the Angular framework developed and maintained by Google. It enables developers to develop scalable and responsive interfaces in less time and hence increases productivity. In this article, we will see Angular PrimeNG Form Calendar Popup and Inlin 3 min read Angular PrimeNG Form Calendar Selection Mode ComponentAngular PrimeNG is a collection of UI components for the Angular framework developed and maintained by Google. It enables developers to develop scalable and responsive interfaces in less time and hence increases productivity. In this article, we will see Angular PrimeNG Form Calendar Selection Mode 3 min read Angular PrimeNG Form Calendar DateFormat ComponentAngular PrimeNG is a collection of UI components for the Angular framework developed and maintained by Google. It enables developers to develop scalable and responsive interfaces in less time and hence increases productivity. In this article, we will see Angular PrimeNG Form Calendar DateFormat Comp 4 min read CascadeSelect ComponentAngular PrimeNG Form CascadeSelect Basic 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. This article will show us how to use TreeTable Column Resize in Angular PrimeNG. Angular PrimeNG For 4 min read Angular PrimeNG Form CascadeSelect Templating 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. This article will show us how to use the calendar component in angular ngx bootstrap. CascadeSelect 3 min read Angular PrimeNG Form CascadeSelect Properties 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. This article will show us how to use the Angular PrimeNG Form CascadeSelect Properties Component. Th 5 min read Angular PrimeNG Form CascadeSelect Templates 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. This article will show us how to use Angular PrimeNG Form CascadeSelect Templates Component. The Cas 4 min read Angular PrimeNG Form CascadeSelect Styling 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  Form CascadeSelect Styling Component in Angular PrimeNG 4 min read Checkbox ComponentAngular PrimeNG Form Checkbox Basic ComponentAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will be seeing Angular PrimeNG Form Checkbox Basic Component. The Checkbox component provided by 3 min read Angular PrimeNG Form Checkbox Multiple ComponentAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will see the Angular PrimeNG Form Checkbox Multiple Component. The Checkbox Component provided by 3 min read Angular PrimeNG Form Checkbox Dynamic Values, Preselection, Value Binding and Disabled OptionAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will be seeing Angular PrimeNG Form Checkbox Dynamic Values, Preselection, Value Binding, and Dis 3 min read Angular PrimeNG Form Checkbox Label ComponentAngular 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 Form Checkbox Label Component. The Checkbox component provi 4 min read Angular PrimeNG Form Checkbox Boolean Value ComponentAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will be seeing the Form Checkbox Boolean Value Component in Angular PrimeNG. The Checkbox compone 3 min read Angular PrimeNG Form Checkbox Properties 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. This article will show us how to use the calendar component in angular ngx bootstrap. Checkbox Prope 4 min read Angular PrimeNG Form Checkbox Events ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be seeing Angular PrimeNG Form Checkbox Events Component. The Checkbox Component provided by PrimeNG is an exten 4 min read Angular PrimeNG Form Checkbox 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. This article will show us how to use the calendar component in angular ngx bootstrap. Checkbox Compo 5 min read Angular PrimeNG Form Checkbox 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. This article will show us how to use the calendar component in angular ngx bootstrap. Checkbox Compo 5 min read Chips ComponentAngular PrimeNG Form Chips Comma Separator ComponentAngular 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 Form Chips Comma Separator Component. The Chips Component i 3 min read Angular PrimeNG Form Chips Template 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. This article will show us how to use the calendar component in angular ngx bootstrap.  Chips Templat 3 min read Angular PrimeNG Form Chips Custom Content 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. This article will show us how to use the Angular PrimeNG Form Chips Custom Content Component. The Ch 3 min read Angular PrimeNG Form Chips Properties 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. This article will show us how to use the calendar component in angular ngx bootstrap. Chips Componen 4 min read Angular PrimeNG Form Chips Events ComponentAngular 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 Angular PrimeNG Form Chips Events Component. The Form Chips Component in PrimeN 3 min read Angular PrimeNG Form Chips Template 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. This article will show us how to use the calendar component in angular ngx bootstrap.  Chips Templat 3 min read ColorPicker ComponentAngular PrimeNG Form ColorPicker Formats 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. This article will show us how to use the Angular PrimeNG Form ColorPicker Formats Component. The Col 3 min read Angular PrimeNG Form ColorPicker Overlay and Inline 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. This article will show us how to use the Angular PrimeNG Form ColorPicker Overlay and Inline Compone 3 min read Angular PrimeNG Form ColorPicker Animation Configuration ComponentAngular PrimeNG is a front-end UI component library for Angular Applications. It is developed and maintained by PrimeTek. PrimeNG helps developers to create stunning web interfaces in less time using pre-built components and themes. In this article, we will discuss the Angular PrimeNG Form ColorPick 3 min read Angular PrimeNG Form ColorPicker Properties ComponentAngular PrimeNG is a front-end UI component library for Angular Applications. It is developed and maintained by PrimeTek. PrimeNG helps developers to create stunning web interfaces in less time using pre-built components and themes. In this article, we will discuss the Angular PrimeNG Form ColorPick 4 min read Angular PrimeNG Form ColorPicker Events ComponentAngular PrimeNG is a front-end UI component library for Angular Applications. It is developed and maintained by PrimeTek. PrimeNG helps developers to create stunning web interfaces in less time using pre-built components and themes. In this article, we will discuss the Angular PrimeNG Form ColorPick 3 min read Angular PrimeNG Form ColorPicker Styling 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 the Angular PrimeNG Form ColorPicker Styling Component. The ColorPicker 3 min read Dropdown ComponentAngular PrimeNG Form Dropdown Basic ComponentAngular PrimeNG is an open-source front-end UI framework developed by PrimeTek for developing efficient and scalable angular applications. Using PrimeNG in their projects helps developers to cut down the development time and focus on other important areas of the application. In this article, we will 3 min read Angular PrimeNG Form Dropdown Group 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 calendar component in angular ngx bootstrap. Dropdown G 5 min read Angular PrimeNG Form Dropdown Advanced with Templating, Filtering and Clear Icon 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 calendar component in angular ngx bootstrap. Dropdown A 5 min read Editor ComponentAngular PrimeNG Form Editor Default 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. This article will show us how to use the Form Editor Default Component in Angular PrimeNG. We will a 3 min read Angular PrimeNG Form Editor Custom Toolbar 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. This article will show us how to use the Form Editor Custom Toolbar Component in Angular PrimeNG. We 3 min read Angular PrimeNG Form Editor Custom Toolbar 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. This article will show us how to use the Form Editor Custom Toolbar Component in Angular PrimeNG. We 3 min read Angular PrimeNG Form Editor Properties 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. This article will see how to use the Form Editor Properties Component in Angular PrimeNG. The Form E 4 min read Angular PrimeNG Form Editor 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 Angular PrimeNG Form Editor Events. The Form Editor is a Quill-based ri 3 min read Angular PrimeNG Form Editor 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 Form Editor Component in Angular PrimeNG. The Form Edito 3 min read Angular PrimeNG Form Editor 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 Form Editor Component in Angular PrimeNG. The Form Edito 3 min read Angular PrimeNG Form Editor Styling 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 Angular PrimeNG Form Editor Styling Component. The Form Editor is a Qui 3 min read InputGroup ComponentAngular PrimeNG Form InputGroup Addons 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 learn how to use the InputGroup Addons Component in Angular PrimeNG. The In 3 min read Angular PrimeNG Form InputGroup Multiple Addons 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 learn how to use the InputGroup Multiple Addons Component in Angular PrimeN 3 min read Angular PrimeNG Form InputGroup Button Addons 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 learn how to use the InputGroup Button Addons Component in Angular PrimeNG. 3 min read Angular PrimeNG InvalidState 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 InvalidState component in angular primeNG. InvalidState 2 min read InputMask ComponentAngular PrimeNG Form InputMask Mask 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. This article will show us how to use the Form InputMask Mask Component in Angular PrimeNG. We will a 3 min read Angular PrimeNG Form InputMask SlotChar 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. This article will show us how to use the Form InputMask SlotChar Component in Angular PrimeNG. We wi 3 min read Angular PrimeNG Form InputMask Optional Values ComponentAngular PrimeNG is a collection of UI components for the Angular framework developed and maintained by Google. It enables developers to develop scalable and responsive interfaces in less time and hence increases productivity. In this article, we will be seeing Angular PrimeNG Form InputMask Optional 3 min read Angular PrimeNG Form InputMask Properties 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 calendar component in angular ngx bootstrap. InputMask 4 min read Angular PrimeNG Form InputMask Events ComponentAngular PrimeNG is a collection of Angular UI components. It is an open-source library developed by PrimeTek. It has many ready-to-use components that make it one of the top choices of angular developers when it comes to choosing a UI library. In this article, we will see the Angular PrimeNG Form In 4 min read Angular PrimeNG Form InputMask Mask 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. This article will show us how to use the Form InputMask Mask Component in Angular PrimeNG. We will a 3 min read Angular PrimeNG Form InputMask Styling ComponentAngular PrimeNG is a collection of Angular UI components. It is an open-source library developed by PrimeTek. It has many ready-to-use components that make it one of the top choices of angular developers when it comes to choosing a UI library. In this article, we will see the Angular PrimeNG Form In 4 min read Like