Last active
August 29, 2015 14:16
-
-
Save simon-lang/3b4fd19cad4cca315cd4 to your computer and use it in GitHub Desktop.
watch expressions.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps = angular.element('ui-view').scope() | |
ms = angular.element('.modal-window > *:eq(0)').scope() | |
s = ms || ps | |
c = s.lCtrl || s.mcCtrl || s.luCtrl || s.ipCtrl || s.viewContestCtrl || s.myLineupsCtrl || s.llCtrl || s.aCtrl | |
vm = c.vm | |
// optional: | |
console.clear() | |
console.log('vm', vm) | |
if (t = vm.contests || vm.athletes) console.table(t) | |
if (vm.contest) console.log('contest', vm.contest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment