userback / widget-js

MIT License
4 stars 3 forks source link

Usage in Angular application #61

Open kunajs opened 11 months ago

kunajs commented 11 months ago

Hi, I prepared two examples of Userback in Angular application (please replace string "**Widget Access Token**" with valid access token): 1) in this example the userback script is placed in index.html according to this docs: https://stackblitz.com/edit/stackblitz-starters-g9x3zk?file=src%2Fmain.ts

2) in this example I am using @userback/widget according to this docs: https://stackblitz.com/edit/stackblitz-starters-9hlyuh?file=src%2Fmain.ts

What am I doing wrong? Or is there a bug?

Please, help. Thanks

Kunajs

Shard commented 10 months ago

Hi @kunajs,

I used your second example link as the npm module would probably be the better choice for angular with the typed interface and it's what this github repo contains.

Once I provided a valid access token for my widget, it seemed to correctly load and log the bound events so i'm not sure if this is a bug with the npm module.

image

My best guess is your access token might be expired or incorrect. If you have any console errors/warnings feel free to post them here so we can further investigate.

Otherwise if you believe token is valid, its still not working and you don't have any errors to go off; please drop us a support request so we can investigate your specific setup for you. https://support.userback.io/knowledge/kb-tickets/new

Cheers!