Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="app">
  <div ng-controller="AnswersCtrl as vm">
    {{ vm.suspects[0].name}}
  </div>
</body>
</html>
 
var app = angular.module("app", []);
app.controller('AnswersCtrl', ['$http', 
function($http) {
    var self = this;
    self.suspects = [{ name: "Suspect 1" }];
    
    self.goToClues = function(){        
        //$state.go('clues');
    };
}]);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers