Hi 

That is a nice sample, but it goes to the fully fine-grained control edge. 
You can still 'generate' a form from a json doc, without much fuss. Have a 
look at this sample <http://plnkr.co/edit/ENgZo8EuIECZNensZCVr?p=preview>. 
Recursive iterating an json into a Formbuilder.group is not that hard. 
Traversing it into the template is also not that challenging. 
The docs are quite nice, but are a bit more focused on the more complex 
use-cases, and samples are made to show off all that is possible. That in 
itself is a good thing, but it might all look a bit more overwhelming as it 
actually needs to be.  

All the documentation you have read, makes it possible to create a template 
that does something like this:

<restform endpoint="api/client">
  <validation field="name" required/>
  <validation field="age" min="18"/>
</restform>

While building the the needed components to work up to that might be 
slightly more complex as it was in ng1, using it is much simpler. right? ;)

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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.

Reply via email to