<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap.no-icons.min.css" rel="stylesheet"></link>
</head>
<body>
<div ng-controller="appCtrl">
<h4 ng-show="bTreeDataSet">Click below button to remove all the data and then check the DOM, You will find that all the previous elements are removed!</h4>
<button class="btn btn-primary" ng-click="toggleData()">{{btnText()}}</button><br />
<tree val="treeData"></tree>
</div>
</body>
</html>