JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body>

<div ng-app="myApp" ng-controller="myCtrl">
<label>List1:</label>
<select ng-model="selectedName" ng-change="getList()" ng-options="item for item in names">
</select>
<br>
<label>List2:</label>
<select ng-model="selectedNcomany" ng-options="item for item in comany">
</select>
<button ng-click="editText()">
Edit
</button>
</div>

<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
    $scope.names = ["Emil", "Tobias", "Linus"];
    var db = {};
    $scope.getList = function(){
    
   if($scope.selectedName == "Linus"){
   $scope.comany = ["!","2"];
   
   }
   else{
     $scope.comany =["0"]
   }
    }
     $scope.editText = function(){
     	$scope.selectedName = "Linus";
      	$scope.selectedNcomany = "1";
     }
});
</script>


</body>
</html>