JSFiddle - React, Tailwind, and code Playground

by José Villacreses

HTML

<div ng-app="taxApp">
  <div ng-controller="taxCtrl">
    <input type="text" ng-model="value"/>    {{value}}

    <select ng-options="item as item.desc for item in taxTypes track by item.id" ng-model="taxTypeSelected"></select>
    {{taxTypeSelected}}
  </div>
</div>

JavaScript

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

taxApp.controller('taxCtrl', function ($scope) {
    $scope.taxTypes = [{
      id: 1,
      desc: 'Impuesto a la renta'
    }, {
      id: 2,
      desc: 'IVA'
    }];
  $scope.value = 33;
  $scope.taxTypeSelected = $scope.taxTypes[0];
});