1.0.10 • Published 3 years ago

ng-orel-card-ipg v1.0.10

Weekly downloads
32
License
-
Repository
-
Last release
3 years ago

Orel Card Ipg

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>

Change log

V1.0.9  - Api urls update
V1.0.10  - Api urls issue fix

This library was generated with Angular CLI version 10.0.9.

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago