test-unit-sauce
Brian Ford 10 years ago
parent 3de10b6f41
commit 918ecd5c7d

@ -14,7 +14,9 @@
<div class="sidebar-pane visible" ng-if="modelsExpanded">
<div class="body">
<div class="section expanded">
<bat-json-tree val="scopes[inspectedScope].models" scope-id="inspectedScope"></bat-json-tree>
<bat-json-tree
bat-model="scopes[inspectedScope].models"
bat-inspect="inspect(path)"></bat-json-tree>
</div>
</div>
</div>

@ -7,6 +7,9 @@ function ScopesController($scope, inspectedApp) {
$scope.scopes = inspectedApp.scopes;
$scope.watch = inspectedApp.watch;
$scope.inspect = function (path) {
inspectedApp.watch($scope.inspectedScope, path);
};
$scope.inspectedScope = null;