Hi Turkel,
a quick example:
const formDescript = {
[
{name:'Name', initialValue:'demo', required:true},
{name:'Eamil', initialValue: '[email protected]', required:true},
{name:'Discription', initialValue:''},
{name:'Age', initialValue:0, min:18, max:120}
]
}
You can add whatever you need to a structure like that. To create a form
out of it, you just need to iterate over it. If needed, you can even do
subforms and everything you might need. Takes some time to the first setup,
but once you have the structure in order, it's very easy to maintain the
forms.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.