I have a list
$scope.options = [
{ id:1, val: "Item 1"},
{ id:2, val: "Item 2"},
{ id:3, val: "Item 3"}
];
I want to be able to generate a list of xml elements
<Name>{{option.id}}</Name>
<Value>{{option.val}}SAS</Value>
I want to be able to generate it inside a text area
<textarea>
// some kind of loop here
<Name>{{option.id}}</Name>
<Value>{{option.val}}SAS</Value>
</textarea>
The ng-repeat element seems to require to be in some of type of element such as option, div, etc.
This won't work for me. I need it to simply generate text strings inside a textarea.
Could someone please provide an example?
textarea