We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am trying to use the web-widget-sdk with an angular app. Here is what I tried:
web-widget-sdk
Angular component:
import { Component, ViewChild, AfterViewInit, ElementRef } from '@angular/core'; import * as widgetSdk from "@mxenabled/web-widget-sdk"; @Component({ selector: 'app-mx', templateUrl: './mx.component.html', styleUrls: ['./mx.component.scss'] }) export class MxComponent implements AfterViewInit { @ViewChild("mxContainer") mxContainer!: Element; private mxWidget: any; constructor() { } ngAfterViewInit(): void { console.log(this.mxContainer); this.mxWidget = new widgetSdk.ConnectWidget({ container: this.mxContainer, url: "https://int-api.mx.com/users/{{userid}}/widget_urls", clientId: "client_id", apiKey: "{{api_key}}", clientRedirectUrl: "" }); } }
HTML page:
<div #mxContainer></div>
Error I get when I run the app:
Do you have any documentation on how to integrate this in Angular app?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am trying to use the
web-widget-sdk
with an angular app. Here is what I tried:Angular component:
HTML page:
Error I get when I run the app:
Do you have any documentation on how to integrate this in Angular app?
The text was updated successfully, but these errors were encountered: