JSFiddle - React, Tailwind, and code Playground

by stevenkaspar

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<div ng-app="staticSelect">
  <div ng-controller="ExampleController">
    <select ng-model='scope_product' ng-change='changeSelect()' ng-options='product as product.text for product in object_list'></select>
</div>
</div>

<script>
angular.module('staticSelect', [])
  .controller('ExampleController', ['$scope', function($scope) {
    $scope.scope_product;

    $scope.object_list = [
      {text: 'Man cut', price: 10.00, duration: 30},
      {text: 'Woman cut', price: 20.00, duration: 1200}
    ]
    $scope.changeSelect = function(){
      console.log($scope.scope_product);
      console.log($scope.scope_product.price);
    }
    
 }]);


</script>