surveyjs_angular_cli icon indicating copy to clipboard operation
surveyjs_angular_cli copied to clipboard

On adding new tab to editor I catch en error

Open vlad-alt opened this issue 4 years ago • 6 comments

Hi I integrated survey-creator and survey-angular to my Angular app. For now I want to add my own tab to editor. I use this example https://surveyjs.io/Examples/Survey-Creator?id=tabscustomization&theme=bootstrap#content-js. In .html code I added tab script (from example) before div where editor will be rendered. And I catch this error. Is it something specific for angular I should to write? image

vlad-alt avatar Aug 12 '20 11:08 vlad-alt

Want to add that tab is rendered but questions removed from pages on Designer Mode

vlad-alt avatar Aug 12 '20 12:08 vlad-alt

This error means that your template hasn't been found. The template id is wrong or the script block with the template down't exist in the page.

tsv2013 avatar Aug 12 '20 13:08 tsv2013

@tsv2013 thanks for answer. May be angular modal window doesn't see

vlad-alt avatar Aug 12 '20 13:08 vlad-alt

@vlad-alt don't think so. Most likely it's a typo. You can run "document.getElementById("your_id")" in console to check whether it exists

tsv2013 avatar Aug 12 '20 13:08 tsv2013

@tsv2013 I run this at Chrome Console, than add it to setInterval to wait for this script loaded. In both cases it is null.

vlad-alt avatar Aug 12 '20 13:08 vlad-alt

@tsv2013 don't worry, I thought I didn't write something important that's why it doesn't work. I try to find another way to do this. Thanks a lot.

vlad-alt avatar Aug 12 '20 13:08 vlad-alt