Install guides (31)
Add Ishara to Angular
Add the feedback widget to an Angular app by pasting one script tag before the closing body tag of src/index.html, not in a component.
- Where it goes
src/index.html, before</body>- Allowed domains
- Your own domain (set when you add the site)
- Time
- About 2 minutes
Steps
In Ishara, open Sites → your site → Install and copy the line under Add the line to your site. Your site’s key is already in it:
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
Open
src/index.html(in a multi-project workspace,projects/your-app/src/index.html) and paste the line just before</body>. The build keeps your content and adds Angular’s own bundles to it:<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>MyApp</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <app-root></app-root> <script src="https://useishara.com/w.js" data-site="pk_…" defer></script> </body> </html>
Build and deploy the app.
Open your site. Back on the Install page, Check it’s live turns into The widget is live as soon as the widget loads. Then open the Reviewer link from the same page: only people who open it see Leave a note.
Good to know
- Don’t add the tag in a component template or through an
[innerHTML]binding: Angular’s sanitiser removes<script>elements there.src/index.htmlis outside its reach. - The
scriptsoption inangular.jsonbundles local files; it isn’t meant for a script from another site with its own attributes. - Angular’s recommended strict Content Security Policy (
script-src 'self' 'nonce-…') blocks the widget unless you add its origin toscript-src(details).
Next
Once reviewers leave notes, your coding agent can apply them. The widget’s options (language, position, colour, launcher) are in the docs.