Skip to content

Instantly share code, notes, and snippets.

@garyjoy
Created May 12, 2016 12:00
Show Gist options
  • Save garyjoy/b54a6b6da49287066c8ac046181d414f to your computer and use it in GitHub Desktop.
Save garyjoy/b54a6b6da49287066c8ac046181d414f to your computer and use it in GitHub Desktop.
var elementNode = document.getElementById(this.context.viewid)
console.log('Change Angular Dialog');
if (event.type !== "config") {
if (event.newVal === true) {
var myScope = angular.element(elementNode.children[0].children[0]).scope();
myScope.toggleModal();
myScope.$apply();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment