angular-qr-bcl-cs
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i angular-qr-bcl-cs

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

97.4 kB

Total Files

20

Last publish

Collaborators

  • chainsense-india