JSFiddle - React, Tailwind, and code Playground
by IgorMinar
HTML
<script src="http://code.jquery.com/jquery-1.6.3.js"></script>
<script src="http://code.angularjs.org/angular-0.10.1.js" ng:autobind></script>
<script>
function FooCtrl() {
var self = this;
self.values = [{name:'A'},
{name:'B'},
{name:'C'},
{name:'D'},
{name:'E'}];
self.set = function(index) {
self.sfoo = self.values[index];
}
}
</script>
</head>
<body ng:init="$service('$window').$root = this" ng:controller="FooCtrl">
<select name="sfoo" ng:options="item.name for item in values">
</select>
sfoo: {{sfoo}}<br>
<a href ng:click="set(1)">set to 0</a> | <a href ng:click="set(3)">set to 3</a>