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

Support for asynchronous schemas #183

Open
elyas-bhy opened this issue Feb 4, 2016 · 2 comments
Open

Support for asynchronous schemas #183

elyas-bhy opened this issue Feb 4, 2016 · 2 comments

Comments

@elyas-bhy
Copy link

I am trying to generate a form based on a schema that I retrieve asynchronously (promise-based).
However, angular-form-for does not seem to detect the change, and instead renders a blank form.
Am I missing something, or is this not implemented yet?

Reproduction codepen here.

@elyas-bhy
Copy link
Author

A partial workaround to this issue would be adding an ng-if directive to the form, and setting the flag to true when the data is ready. However, it seems that once the initial schema is set, there is no way of dynamically updating it.

@bvaughn
Copy link
Owner

bvaughn commented Feb 4, 2016

form-for expects the schema object to be fully loaded before being set. Dynamic schemas aren't supported.

I am happy to leave this issue open as a feature-request if anyone (perhaps you?) would be interested in contributing a PR but I will not have the time to do it. :)

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

No branches or pull requests

2 participants