Angular: Empty Fiddle

http://angularjs.org/

by sjmcpherson

HTML

<script src="https://code.angularjs.org/1.3.0-beta.13/angular.min.js"></script>
<div ng-controller="MyCtrl">
{{data.color}}
{{data.color.label}}
</div>

JavaScript

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

function MyCtrl($scope) {
    $scope.Description = "Testing <br /> Data";
    $scope.Description = $scope.Description.replace(/<br\s*\/?>/mg,"\n");
    
    $scope.colors:{
  {id:"0",label:"blue"},
  {id:"1",label:"red"},
  {id:"2",label:"green"}
}
$scope.data:{
  color:"1",
  otherproperty:""
}

}