Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<meta charset=utf-8 />
<title>ng-click</title>
</head>
<body>
  
    <div ng-controller="TodoCrtl">
      
      <div ng-repeat="item in data track by $index" ng-init="parsedData=getParsedData(item)">
        
        
        {{parsedData.key}} and {{parsedData.value}}
      </div>
      
    </div>
</body>
</html>
 
function TodoCrtl($scope) {
    
  $scope.data = ["{key:myKey,value:true}", "{key:myKey,value:true}"];
  
    
$scope.getParsedData=function(item){
  
  return JSON.parse(item.replace(/:/g,'":"').replace(/{/g,'{"').replace(/,/g,'","').replace(/}/g,'"}'));
}; 
}
  
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers