JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app ng-controller="Controller">
<div>
<h2>Number of changes: {{numOfChanges}}</h2>
<select ng-change="change()" ng-model="currentSelection">
<option ng-repeat="option in options" value="{{option}}">{{option}}</option>
</select>
</div>
<div>
{{currentSelection}}
{{test}}
</div>
</body>
JavaScript
function Controller($scope) {
$scope.numOfChanges = 0;
$scope.change = function() {
$scope.numOfChanges++;
}
if ($scope.currentSelection) {
$scope.test = "WORKS";
}
$scope.options = ["do", "ray", "me", "far", "so", "la", "tee","dah"]
}