@geom_team/ngx-slider-captcha
v0.0.5
Published
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.14.
Downloads
7
Readme
ngx-slider-captcha
This project was generated with Angular CLI version 11.2.14.
installation
#use npm
npm install @geom_team/ngx-slider-captcha
#use yarn
yarn add @geom_team/ngx-slider-captcha
usage example
import { NgxSliderCaptchaModule } from "@geom_team/ngx-slider-captcha";
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, NgxSliderCaptchaModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
use component in html
<ngx-slider-captcha [config]="config" (success)="success()" (fail)="fail()" (refresh)="refresh()"></ngx-slider-captcha>
add assets
在 angular.json 中添加以下内容
{
"assets": [
{
"glob": "**/*",
"input": "node_modules/@geom_team/ngx-slider-captcha/src/assets",
"output": "assets"
}
]
}