Question T2416
Visible to All Users

Angular Issue with Custom tab

created 5 years ago

Hello,

  1. I want to use angular's code in this custom tab. is it possible ?
    Because I tried to use angular's routerLink with the inner element, but didn't worked, neither worked as component, nor was I able to use any component in custom tab template from your given example Ref: T2382

In that example I used survey component in the defined custom html template file.

Thanks,
Hiren

Answers approved by surveyjs Support

created 5 years ago

Hello Hiren,
Unfortunately it is not possible, since it is a knockout template. We do not use Angular in SurveyJS Creator.
However, you may easily call a function from link from where you may do a routing. Here is the updated example.

Thank you,
Andrew
SurveyJS Team

    Other Answers

    created 5 years ago

    Hello Andrew,
    I tired using angular's service in that function but didn't worked. Is there any other way ?

      Show previous comments (2)

        You are welcome!

        Thank you,
        Andrew
        SurveyJS Team

          Code
          import tabsTemplates from "./survey.creator.summary-template.html";

          Cannot find module './survey.creator.summary-template.html' or its corresponding type declarations.ts(2307)

          View Problem (Alt+F8)
          I got the above error at that point when i clone and run it in angular.
          Please do help!
          Thank you.

            Hello,

            I created a separate ticket on your behalf: T7280: Cannot find module error. We placed it in our processing queue and will process it shortly.

            Thanks, Serge
            SurveyJS Team