Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-controller="myCtrl">
  <select>
      <option ng-repeat="opt in myOptions" ng-bind-html="htmlAdText(opt.text)">{{opt.text}}</option>
  </select>
</body>
</html>
 
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $sce){
  
  $scope.myOptions = [{
    text: '10.00 &euro;',
    val: 10
  },{
    text: '25.00 &euro;',
    val: 25
  },{
    text: '50.00 &euro;',
    val: 50
  }];
  
  $scope.desiredAmount = $scope.myOptions[0].val;
  $scope.htmlAdText = function(text){ return $sce.trustAsHtml(text); };
  
});
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers