ngx-lehjah
v0.0.2
Published
`ngx-lehjah` is an Angular package that allows you to embed the Lehjah widget in your Angular application via an iframe. This package makes it easy to integrate Lehjah's powerful accounting system directly into your Angular app.
Downloads
4
Readme
ngx-lehjah
ngx-lehjah
is an Angular package that allows you to embed the Lehjah widget in your Angular application via an iframe. This package makes it easy to integrate Lehjah's powerful accounting system directly into your Angular app.
Installation
Install the package using npm:
npm install ngx-lehjah
Usage
In your component template, use the ngx-lehjah
component to embed the widget:
<ngx-lehjah
[business_id]="'your-business-id'"
[public_key]="'your-public-key'"
[token]="'your-token'"
[environment]="'sandbox'" <!-- or 'production' -->
[width]="'100%'"
[height]="'500px'">
</ngx-lehjah>
Parameters
business_id
: (string) The unique ID of the business on your platform. This is required.public_key
: (string) Your Lehjah developer public key. This is required.token
: (string) The user authentication token on your platform (e.g., Bearer token). This is required.environment
: (string) The environment to use. It can be eithersandbox
orproduction
. Defaults tosandbox
.width
: (string) The width of the iframe. Defaults to'100%'
.height
: (string) The height of the iframe. Defaults to'100%'
.
Example
<ngx-lehjah
[business_id]="'abc123'"
[public_key]="'pk_test_abcdef'"
[token]="'user-auth-token-here'"
[environment]="'sandbox'"
[width]="'100%'"
[height]="'600px'">
</ngx-lehjah>
To request access to Lehjah sandbox, visit https://cal.com/lehjah/request-access.
License
This project is licensed under the MIT License.