JSPM

@leendev/onramp-angular

0.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q31815F
    • License MIT

    Angular wrapper for Leen OnRamp

    Package Exports

    • @leendev/onramp-angular
    • @leendev/onramp-angular/package.json

    Readme

    Leen OnRamp for Angular

    OnRamp is Leen's embeddable connection onboarding component. By integrating OnRamp into your workflow, you enable your users to effortlessly create new connections with all of the vendors supported by Leen.

    npm i @leendev/onramp-angular

    Then import the module (or register the standalone component) and provide the required inputs. For the full documentation, refer to Leen's docs on creating connections with OnRamp here.

    Example (NgModule)

    import { LeenOnRampModule } from "@leendev/onramp-angular";
    
    @NgModule({
      imports: [BrowserModule, LeenOnRampModule],
    })
    export class AppModule {}
    <leen-onramp
      [token]="token"
      (leenOnRampResponse)="handleResponse($event)"
      (showLeenOnRamp)="toggleOnRamp($event)"
    ></leen-onramp>

    Example (standalone component)

    @Component({
      standalone: true,
      imports: [LeenOnRampComponent],
      template: `
        <leen-onramp
          [token]="token"
          (leenOnRampResponse)="handleResponse($event)"
        ></leen-onramp>
      `,
    })
    export class HostComponent {
      token = "...";
    
      handleResponse(response: LeenOnRampResponse | undefined) {
        console.log(response);
      }
    }