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/js/controllers/OptionsCtrl.js

23 lines
512 B
JavaScript

panelApp.controller('OptionsCtrl', function OptionsCtrl($scope, appContext, appHighlight) {
$scope.debugger = {
scopes: false,
bindings: false,
app: false
};
['scopes', 'bindings', 'app'].forEach(function (thing) {
$scope.$watch('debugger.' + thing, function (val) {
appHighlight[thing](val);
});
});
appContext.getAngularVersion(function (version) {
$scope.version = version;
});
appContext.getAngularSrc(function (status) {
$scope.status = status;
});
});