Angular
Angular UI Package for KYC
Installation
You can install the @faceki/angular-kyc-sdk package using npm or yarn:
npm install @faceki/angular-kyc-sdk
# or
yarn add @faceki/angular-kyc-sdkGetting Started
Import the Module
Import the FacekiKycModule into your Angular application module:
import { FacekiKycModule } from '@faceki/angular-kyc-sdk';
@NgModule({
imports: [FacekiKycModule],
// ...
})
export class YourAppModule { }Set Configuration
Provide your KYC service configuration in your Angular app, typically in the providers array of your module. For example:
Add Bootstrap in index.html
Link Assets
Add this to your angular.json inside projects -> architect -> build -> assets
Use the Component
In your Angular component template, use the <lib-faceki-kyc></lib-faceki-kyc> custom element to integrate KYC functionality into your application:
Handle KYC Responses & Text Controls
Implement success and failure callbacks to handle KYC responses within your component, as demonstrated in the provided code examples:
Last updated