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

Update to RC3 - dynamic form #62

Closed
abodacs opened this issue Jun 22, 2016 · 1 comment
Closed

Update to RC3 - dynamic form #62

abodacs opened this issue Jun 22, 2016 · 1 comment

Comments

@abodacs
Copy link

abodacs commented Jun 22, 2016

i wonder how to merge angular formly with this
https://angular.io/docs/ts/latest/cookbook/dynamic-form.html

@TheMcMurder
Copy link
Contributor

That API is very similar to angular-formly (1.x)

// dynamic form field API for angular2
new TextboxQuestion({
  key: 'firstName',
  label: 'First name',
  value: 'Bombasto',
  required: true,
  order: 1
})

// angular formly for angular 1.x
{
  type: 'input',
  key: 'firstName',
  templateOptions: {
    label: 'first Name',
    required: true,
  }
}

This is really cool.

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

No branches or pull requests

3 participants