Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app='myApp'>
<head>
<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>
  <directive1></directive1>
</body>
</html>
 
var app = angular.module('myApp', []);
app.run(function($rootScope) {
  $rootScope.Data = [];
  $rootScope.Data.Version = '1.0.0.1';
});
app.directive('directive1', function() {
  return {
    scope: {}, 
    restrict: 'E',
    template: "<div>{{Data.Version}}</div>"
  };
});
Output 300px

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

Dismiss x
public
Bin info
MikeCheelpro
0viewers