Angular: Empty Fiddle

http://angularjs.org/

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="DestroyedCtrl">
  
    <div ng-controller="MyCtrl">
        <input type="text" ng-model="name">
        Hello, {{name}}!
    </div>
    <button ng-click="$destroy()">Destroy parent scope!</button>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    $scope.name = 'Superhero';
}

function DestroyedCtrl(){}