Currently facing an intriguing issue,
I am attempting to create something like this:
input key 1 , input value 1
input key 2 , input value 2 < button to add more >
< submit button >
Essentially, a user can click submit and send a Get request to a specific URL. When they click to add more, a new row will appear with two input fields where additional http get parameters can be added.
I have tried coding this out, but I am stuck at this point: http://jsfiddle.net/d2jL2n35/1/
Your assistance would be greatly appreciated...
Two inquiries:
How can a new row be dynamically added after the plus box is clicked?
myApp.directive('options',function(){ return { restrict:"E", template:"<div><input placeholder='params1' type='text'/><input placeholder='params2' type='text'><button><i class='glyphicon glyphicon-plus'></i></button></div>" }
})
Resolved the first query by using $compile: http://jsfiddle.net/KyEr3/216/
- How do you retrieve all the params and send a get request?????