Skip to content
New issue

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

What is template-data used for in the form viewer? #48

Open
mindscratch opened this issue Jul 28, 2017 · 1 comment
Open

What is template-data used for in the form viewer? #48

mindscratch opened this issue Jul 28, 2017 · 1 comment

Comments

@mindscratch
Copy link

In the demo code, the form viewer has its template-data property set equal to a json object, but I'm unclear about its purpose.

The documentation for the form viewer doesn't describe this property either.

@mwasiluk
Copy link
Owner

It can be used for template data interpolation in questions.
You can see it used eg. in http://wasiluk.io/angular-surveys/material/ question:

Is {{person.name}} age {{person.age}}?

which gets interpolated in viewer to:

Is Bob age 33?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants