ng-orel-card-ipg
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.8 • Public • Published

    OrelCardIpg

    This library was generated with Angular CLI version 10.0.9.

    Installation

    npm i ng-orel-card-ipg

    Card Adding

    Setup

    app.module.ts

    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    
    import { AppComponent } from './app.component';
    
    import {NgOrelCardIpgModule} from 'ng-orel-card-ipg';
    
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        NgOrelCardIpgModule.forRoot({stage: 'dev'}),
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
    

    app.component.ts

    import { Component } from '@angular/core';
    import { NgOrelCardIpgService } from 'ng-orel-card-ipg';
    
    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.css']
    })
    export class AppComponent {
      title = 'angular-orel-test';
    
     constructor(private orelIpg: NgOrelCardIpgService){
    
     }
    
     openCardAdding(){
       let token = 'xxxxxxxxxxx'; //orel-sso token
       let referance = 'xxxxx';
       this.orelIpg.AddCard(token, referance).then((response) => {
          alert(response);
       }).catch(error => {
          alert(error);
       })
     }
    
    }
    

    app.component.html

    <button (click)="openCardAdding()">Add Card</button>
    <br/><br/>
    
    <div style="height: 500px;">
      <lib-ng-orel-card-ipg></lib-ng-orel-card-ipg>
    </div>
    

    Install

    npm i ng-orel-card-ipg

    DownloadsWeekly Downloads

    2

    Version

    1.0.8

    License

    none

    Unpacked Size

    86.6 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar