Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html  ng-app="SO29137733">
<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="MainCtrl">
<select>
  <option ng-repeat="option in fullFamilydetails" value="{{option.serial_no}}" ng-bind-html="    option.Name | intent">
  </option>
  
</select>
</body>
</html>
 
angular.module("SO29137733", []) 
   .controller("MainCtrl", function($scope){
  $scope.fullFamilydetails = [{"DOB":"2014-09-03 00:00:00.0","Name":"MaleChildTest","Relation":"Son","SERIAL_NO":55213,"AGE":"0", intent: 3},{"DOB":"2014-09-03 00:00:00.0","Name":"MaleChildTest","Relation":"Son","SERIAL_NO":55213,"AGE":"0", intent: 3}];
$scope.label = function(name, relation) {
  return name+"-"+relation;
};
})
.filter('intent', function($sce) {
    return function(category) {
        var INTENT_SIZE = 4;
        if (!category) {
            return '';
        }
        var result = "";
        for (var i = 0; i <  10; i++) {
            result += "&nbsp;";
        }
        result += category;
        return $sce.trustAsHtml(result);
    };
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
mohamedriaspro
0viewers