Created
November 10, 2014 02:11
-
-
Save valmirphp/b44333715c4588d34b4e to your computer and use it in GitHub Desktop.
get scope angular
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
var sidebar = document.getElementsByTagName('body'); | |
var scope = angular.element(sidebar).scope(); | |
var rootScope = scope.$root; | |
scope.$apply(function(){ | |
rootScope.$broadcast('loadMap'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment