angular-qr-bcl-cs
v1.0.0
Published
### Import the module and add it to your imports section in your main AppModule:
Downloads
3
Readme
Import and Usage
Import the module and add it to your imports section in your main AppModule:
import { AngularQrBclModule } from 'angular-qr-bcl-cs';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, CommonModule, AngularQrBclModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Import Bcl Service and add it to your eg AppComponent:
import { BclService } from 'angular-qr-bcl-cs';
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'angular';
constructor(private bclService: BclService) {}
onBclVerify(data: any) {
console.log(data);
}
toggleModal() {
this.bclService.toggleBclModal();
}
}
Add Bcl Component Selector to your eg app.component.html:
<lib-angular-qr-bcl-cs (onBclVerify)="onBclVerify($event)"></lib-angular-qr-bcl-cs>
<button type="button" (click)="toggleModal()">Login With BCL</button>