Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app='Demo'>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.min.js"></script>
  <meta charset=utf-8 />
  <title>JS Bin</title>
</head>
<body ng-controller="DemoCtrl">
  <div class="hello" ng-include src="'hello'" ng-controller="HelloCtrl"></div>
  <script type="text/ng-template" id="hello">
    <div>In 1.2.0-rc.2 we should see text `Hello`, but in 1.2.1 => `Demo`</div>
    <h1>{{hello}}</h1>
  </script>
</body>
</html>
  
 
var app = angular.module('Demo', []);
app.controller('DemoCtrl', function ($scope) {
  $scope.hello ="Demo";
});
app.controller('HelloCtrl', function ($scope) {
  $scope.hello = "Hello";
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers