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