Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body  ng-controller="DemoController">
  {{cfg|json}}
</body>
</html>
 
angular.module('app', ['app.cfg'])
  .controller('DemoController', function ($scope, cfg) {
    $scope.cfg = cfg;
  });
$.ajax('https://rawgit.com/maxaon/c524ca7e22a6f67bac0f/raw/08acd2e8f597b728d6b6a55de0f231ee857c013d/config.json').success(function (data) {
  angular.module('app.cfg', []).constant('cfg', data);
  angular.bootstrap(document.body, ['app']);
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers