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.
23 lines
502 B
JavaScript
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;
|
|
};
|
|
|
|
}
|