Skip to content

Instantly share code, notes, and snippets.

@startswithaj
Forked from simon-lang/watch expressions.js
Last active August 29, 2015 14:21
Show Gist options
  • Save startswithaj/c43b1a646796bcdb9381 to your computer and use it in GitHub Desktop.
Save startswithaj/c43b1a646796bcdb9381 to your computer and use it in GitHub Desktop.
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