Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All
Please help me on below requirement.
I have one html table with two columns it contains text box
and user can add multiple rows using add row button.
so i have bind one collection to table and its working fine.
what i want if user will click on AddnewTable button then same table stracture should be create with one row. and their entered data will come in array.

What I have tried:

I have create multiple tab using bootstrap
the default first tab contains html table with tow colons and 1 row (td contains textbox).
if user will click on addNewTab button then new tab with same table structure will be create.But if i add row in second table it also creating same row in first table also. event i typed something in first table row same text is entering in second table.
Posted
Updated 30-Mar-16 20:55pm

1 solution

Hello,

Based on your trials, it seems that the changes are being added to the same scope. You can always debug and check to which scope it gets added. Use Angular BatRang Google chrome extension.
AngularJS Batarang (Stable) - Chrome Web Store[^]
In angular it is very important to track the $scope/this inorder to maintain the stability and changes to particular elements.

Please try this else paste your code for better understanding to us.
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900