A general idea, agnostic of framework....

each row that you have in your form is a visual representation of a record 
in a collection. So start by creating a component, which represents a row, 
and the parent component can then just show you a list of those records 
using ngFor (in case of Angular 2) and add row would simply become adding a 
new record to the collection.


On Monday, May 30, 2016 at 8:07:12 AM UTC+5:30, Robert F wrote:
>
> Hi all-
>
> I'm trying to put together an angular 2 app that has as part of a form the 
> ability to dynamically add another row of input fields, in this case just 
> 2-3 text fields per row.    
> Ideally the user would click on an 'add row' button that would be just 
> below the current last row and another row of text input fields would be 
> added.
>
> I'd appreciate any advice and pointers to any sample code that performs 
> the above in Angular2.
>
> New to the group, new to Angular2, and have tried searching for an 
> example; both in this group as well as the general interwebs...
>
> Thanks in advance
>

-- 
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