Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>Override</title>
  <script>
    angular.module('A', [])
    .controller('C', function ($scope) {
      $scope.foo = 'first module';
    });
    
    angular.module('A', [])
    .controller('C', function ($scope) {
      $scope.foo = 'second module';
    })
    </script>
</head>
<body ng-app="A">
  <h2>Angular module override</h2>
  <p>Open console to see messages</p>
  <p ng-controller="C">Finally, who wins registration? {{ foo }}</p>
</body>
</html>
Output

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

Dismiss x
public
Bin info
bahmutovpro
0viewers