Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.js"></script>
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body ng-app="app" ng-controller="Ctrl">
<div ng-style="{ color: thecolor }">
  foo
</div>
</body>
</html>
 
angular.module("app", [])
.controller("Ctrl", function($scope) {
    $scope.thecolor = "red";
});
var d = moment();
console.log(d.format());
Output

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

Dismiss x
public
Bin info
mzohaibqcpro
0viewers