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

Feature: Generate forms #207

Closed
tiaguinho opened this issue Jan 17, 2018 · 3 comments
Closed

Feature: Generate forms #207

tiaguinho opened this issue Jan 17, 2018 · 3 comments
Labels

Comments

@tiaguinho
Copy link

I was thinking if it's possible to use schematics to generate forms.
The idea is to type something like ng generate form app --module=apps/<appname>/src/app/app.module.ts --schema=category.json --reactive

Inside the category.json we can describe the interface like this:

{
    "id": "string",
    "name": "string",
    "slug": "string"
}

NX will generate a component with boilerplate form based on the describe inside the .json file.

@matthewharwood
Copy link

I think a future iteration of semantics will allow you to write your own. In the meantime,
You should look at formly https://alligator.io/angular/formly/

@vsavkin
Copy link
Member

vsavkin commented Jan 21, 2018

I thought about it quite a bit and came to a conclusion that it is hard to provide a generic schematic for forms because they tend to be app-specific. You can, however, create your own schematic generating forms. Formly is a good option as well.

Closing this issue.

@vsavkin vsavkin closed this as completed Jan 21, 2018
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants