https://github.com/twp0217/ngx-password-strength
A password strength component for Angular 2+ (基于angular 2+ 的密码强度组件)
https://github.com/twp0217/ngx-password-strength
angular angular2 angular4 ngx-password-strength password-strength
Last synced: 2 months ago
JSON representation
A password strength component for Angular 2+ (基于angular 2+ 的密码强度组件)
- Host: GitHub
- URL: https://github.com/twp0217/ngx-password-strength
- Owner: twp0217
- License: mit
- Created: 2017-05-24T08:00:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T08:37:48.000Z (about 9 years ago)
- Last Synced: 2025-12-25T22:31:45.617Z (6 months ago)
- Topics: angular, angular2, angular4, ngx-password-strength, password-strength
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx-password-strength
A password strength component for Angular 2+ (基于angular 2+ 的密码强度组件)
## 安装
```
npm install ngx-password-strength --save
```
## 使用
- 安装依赖包:`ngx-password-strength`
```
npm install ngx-password-strength --save
```
- 在module导入`NgxPasswordStrengthModule`
```
import { NgxPasswordStrengthModule } from 'ngx-password-strength';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
NgxPasswordStrengthModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```
- 在模板页面使用
```
```
# 文档
- `colors` - `Array` - 密码强度颜色
- `checkPassword` - `String` - 检查密码
# 支持
- 如果项目对你有帮助,请点颗星:star:,谢谢。
- 如果你对项目有想法、问题、BUG,欢迎讨论。