Created
September 22, 2015 09:32
-
-
Save vanduc1102/5fd772501fc31ba46078 to your computer and use it in GitHub Desktop.
wait until get element scope
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
if(!$scope.securityClassElementScope){ | |
var watcher1 = $scope.$watch(function(){ | |
return $element.find("#security-classes-multiple-search-and-select-edit-id").isolateScope(); | |
},function(val){ | |
if(val){ | |
watcher1(); | |
$scope.securityClassElementScope = val; | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment