JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" ng:autobind
src="http://code.angularjs.org/0.9.17/angular-0.9.17.js"></script>

<div ng:controller="Ctrl">    
    <select name="values">
        <option>colors</option>
        <option>pets</option>
    </select>
    
    <select name="value" ng:options="o for o in getOptions()"></select> value={{value}}
</div>

JavaScript

function Ctrl() {
    var scope = this;
    scope.values = 'colors';

    scope.getOptions = function() {
        if (scope.values === 'colors') {
            return ['red', 'green', 'blue', 'purple'];
        } else {
            return ['cat', 'dog'];
        }
    }
}