@voxgig/podw-angular
v1.0.3
Published
Angular wrapper to use the Podmind widget
Downloads
7
Readme
Angular Podmind Widget
Install
- In your app root directory, run:
npm i @voxgig/podw-angular
- After the package is installed, import and add the lib component similar to the following:
import { Component } from '@angular/core';
import { PodWComponent } from '@voxgig/podw-angular'
import { PodWAttr } from './pod-wattr'
@Component({
imports: [PodWComponent]
})
export class YourComponent {
podWAttr: PodWAttr = {
"apikey": "your-api-key"
};
}
You must pass the following prop through an interface:
apikey
- The API key provided by Voxgig.
Then add to your template file:
<lib-podmind-widget [podw]="podWAttr" />
Debugging
- You can pass the attribute
debug
to thepodWAttr
property. To log widget properties:
podWAttr: PodWAttr = {
"apikey": "your-api-key",
"debug": "true"
};
- Resulting in a log similar to the following:
apikey: "your-api-key"
debug: true
mark: "20e1a7d5"