Home How to properly set selected <li> using Angular-UI Dropdown
 I have a dropdown control, implemented as follows: 
 The corresponding Angular controller code looks like this:  $scope.templateList = [{id:1, name: 'H2O'}, {id:2, name: 'R'}, {id: 3, name: "Python"}];$scope.selectedOption = $scope.templateList[1];$scope.template = {}; $scope.setValue = function(list) {$scope.template.template_id = list.id; \$scope.template.template_name = list.name; console.log("selected item: " + list.name); };  Once a particular item from the dropdown has been selected, I need the dropdown to show the selection in place of default "Open With" option. What code charge do I need to make to programmatically control the dropdown selection?