JSFiddle - React, Tailwind, and code Playground
by Lune Yu
HTML
<script src="https://code.angularjs.org/1.3.15/angular.js"></script>
<div ng-controller="MyCtrl">
<select ng-click="sortContent()" ng-model="selected">
<option ng-selected="item.selected" class="sort_option" value="{{item.value}}" ng-repeat="item in selectModel">
{{item.htmlText}}
</option>
</select>
{{selected}}
</div>
JavaScript
var myApp = angular.module('myApp', [])
.controller("MyCtrl", MyCtrl);
function MyCtrl($scope) {
$scope.d = 1;
$scope.sortContent = function(item_) {
console.log('000');
}
$scope.selectModel = null;
}