Last active
April 18, 2018 19:26
-
-
Save mindspank/3edca116f29b36404e26511ff7051eaa to your computer and use it in GitHub Desktop.
Get object properties in Sense
This file contains 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
document.addEventListener('click', function(e) { | |
(function recurse(scope) { | |
if(!scope.model) return recurse(scope.$parent); | |
scope.model.getProperties().then(properties => { | |
delete properties['qInfo']; | |
delete properties['qMetaDef']; | |
window.qliksenseobject = JSON.stringify(properties, null, 4); | |
console.log( JSON.stringify(properties, null, 4) ) | |
}) | |
})(angular.element(e.target).scope()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment