Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
  <body ng-controller="MainCtrl">
    config1: {{fooConfig.config1}}
    <br />
    config2: {{fooConfig.config2}}
  </body>
</html>
 
app = angular.module("app", []);
app.controller('MainCtrl', function($scope, fooConfig) {
  $scope.fooConfig = fooConfig;
});
app.constant('fooConfig', {
  config1: true,
  config2: "Default config2"
});
Output

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

Dismiss x