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.
24 lines
521 B
JavaScript
24 lines
521 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;
|
|
});
|
|
*/
|
|
});
|