JSFiddle - React, Tailwind, and code Playground

HTML

<div data-ng-app="market">
    <div data-ng-controller="SomeController">
{{set}}
            <select ng-options="name for (name,id) in fish" ng-change="getIdByName(selectedFish)" ng-model="selectedFish">
            </select>
    </div>    
</div>

JavaScript

var app = angular.module('market', []);

app.controller('SomeController', ['$scope', '$filter', function($scope, $filter) {
     $scope.fish = {'Ben':1, 'Rich':2,'John':3}
     
     $scope.selectedFish = "John"
     
     
     
     $scope.getIdByName = function(fish_name) {
         $scope.set=fish_name
}}]);