I have a list of objects in angularjs and with that I populate some html as follows I have a list with items for example the text would be displayed in the list like
Item1
Item2
Item3
Now when a user selects one of these I bind data to the below controls on the page, but if they select another then it bind to the control and the first selections ui data is no longer displayed.
<div class="form-group" >
<label for="sEntity" class="col-md-3 control-label">S-Entity</label>
<div class="col-md-9">
<div id="sEntity" options="sList" ng-model=selected ng-bind="selectedValue"></div>
</div>
</div>
<div class="form-group">
<label for="sColumns" class="col-md-3 control-label">Mappings</label>
<div class="col-md-9">
<div id="sColumns" options="sColumnsList"
selected-model="sColumnsLookup" checkboxes="true"></div>
</div>
</div>
Asking for some guidance as to what would be the best way to didplay this on the page such that when they select one it somehow add to a container and displays on the screen, sort of like appending html. Also if the user decides to delete a value from the list above , lets say Item3, then it will delete from the container of html . Would ng-repeat work or would a directive be required to create dynamic html everytime a user selects ?
ng-repeatis what you should be aiming for, but it's unclear what exactly you are trying.