I have two arrays with dynamic values:
$scope.objectName = [{ Name: '' }];
$scope.propertiesElement = [{ Key: '', Value: '' }];
How can I concatenate these arrays to achieve the following result?
[{Name:''},{ Key: '', Value: '' }]
The Plunker link seems to be not functioning correctly at the moment.
When clicking on the "add row" button, it should only add rows for key and value text boxes, not for name. I want to be able to add multiple rows, and upon clicking "Submit", the output should display the key-value pairs as follows:
[{Name:''},{ Key: '', Value: '' },{ Key: '', Value: '' },{ Key: '', Value: '' }.....and so on]
Thank you!