Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
angular-weblineindia-password
Advanced tools
An AngularJS based Password Input component, which provides input field to add password as a text / password property with validation. The password value is automatically validated on change event. You can also disable password field using disable props.
Readme
An AngularJS based Password Input component, which provides input field to add password as a text / password property with validation. The password value is automatically validated on change event. You can also disable password field using disable props.
83.0 ✔ | 77.0 ✔ | 13.1.1 ✔ | 83.0 ✔ | 11.9 ✔ |
Install the npm package:
npm install angular-weblineindia-password
#OR
yarn add angular-weblineindia-password
If your angular verson is diffrent then install fontawesome :
Using ng add
:
# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>
Using Yarn
$ yarn add @fortawesome/fontawesome-svg-core
$ yarn add @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ yarn add @fortawesome/angular-fontawesome@<version>
Using NPM
$ npm install @fortawesome/fontawesome-svg-core
$ npm install @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ npm install @fortawesome/angular-fontawesome@<version>
@fortawesome/angular-fontawesome | Angular | ng-add |
---|---|---|
0.1.x | 5.x | not supported |
0.2.x | 6.x | not supported |
0.3.x | 6.x && 7.x | not supported |
0.4.x, 0.5.x | 8.x | not supported |
0.6.x | 9.x | supported |
Use the <angular-weblineindia-password>
component:
import { NgModule } from '@angular/core';
import { PasswordModule } from 'angular-weblineindia-password';
@NgModule({
imports: [PasswordModule]
})
export class AppModule {}
Add typescript on .ts file
export class AppComponent {
passwordValue: any = {
value: "",
placeholder: "Enter Password",
name: "password",
id: "password",
disabled: "false",
tabindex: "1",
paswordMinLength: 3,
passwordFieldType: 'password',
paswordMaxLength:255,
passwordErrorName:'The password field must be at least 3 characters'
};
onChangePassword(event) {
if (event.target.value.trim() === "") {
this.passwordValue.value = event.target.value
.replace(/^[^-\s][a-zA-Z0-9_\s-]+$/, "")
.trim();
} else {
this.passwordValue.value = event.target.value;
}
}
onFocusPassword(event) {
event.target.placeholder = "";
}
onBlurPassword(event) {
event.target.placeholder = this.passwordValue.placeholder;
}
}
Add html on .html file
<lib-password
[placeholder]="passwordValue.placeholder"
[name]="passwordValue.name"
[value]="passwordValue.value"
[id]="passwordValue.id"
[disabled]="passwordValue.disabled"
[tabindex]="passwordValue.tabindex"
[paswordMinLength]="passwordValue.paswordMinLength"
[paswordMaxLength]="passwordValue.paswordMaxLength"
[passwordFieldType]="passwordValue.passwordFieldType"
[passwordErrorName]="passwordValue.passwordErrorName"
(change)="onChangePassword($event)"
(focus)="onFocusPassword($event)"
(blur)="onBlurPassword($event)"
></lib-password>
Prop | Type | default | Description |
---|---|---|---|
paswordMinLength | Number | 3 | min length for password |
paswordMaxLength | Number | 255 | max length for password |
passwordFieldType | String | password | field type of password(like text or password) |
passwordErrorName | String | The password field must be at least 3 characters | error name for password |
placeholder | String | password | password placeholder |
disabled | Boolean | false | disable password field |
name | String | password | name for password field |
tabindex | Number | 1 | password tabIndex |
id | String | password | name for password field |
hide | Boolean | false | for hide password field |
isViewPassword | Boolean | true | To hide/show eye icon |
value | String | value for password |
Name | Description |
---|---|
focus | Gets triggered when the password input field receives focus. |
blur | Gets triggered when the password input field loses focus. |
change | Gets triggered every time password got changed. |
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development
Detailed changes for each release are documented in CHANGELOG.md.
angular-weblineindia-password, password-input, angular-components, angularjs, angularjs-component, password-input-component, angularjs-password-input, password-validation, angularjs-password-validation
FAQs
An AngularJS based Password Input component, which provides input field to add password as a text / password property with validation. The password value is automatically validated on change event. You can also disable password field using disable props.
The npm package angular-weblineindia-password receives a total of 0 weekly downloads. As such, angular-weblineindia-password popularity was classified as not popular.
We found that angular-weblineindia-password demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.