You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
angularjs-batarang/panel/scopes/scopes.js

23 lines
502 B
JavaScript

'use strict';
angular.module('batarang.app.scopes', []).
controller('ScopesController', ['$scope', 'inspectedApp', ScopesController]);
function ScopesController($scope, inspectedApp) {
$scope.scopes = inspectedApp.scopes;
$scope.watch = inspectedApp.watch;
$scope.inspectedScope = null;
$scope.$on('inspected-scope:change', function (ev, data) {
inspectScope(data.id);
});
function inspectScope(scopeId) {
$scope.watch(scopeId);
$scope.inspectedScope = scopeId;
};
}