Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. scope.$on('highchartsng.reflow', function () {
  2. chart.reflow();
  3. });
  4.  
  5. $scope.$watch("someElement", function(nV,oV){
  6. if(nV===oV) return;
  7. $scope.$broadcast('highchartsng.reflow');
  8. });
  9.  
  10. // This doesn't work when I add it to the directive..
  11. scope.$on('zoomOut', function() {
  12. chart.zoomOut();
  13. });
  14.  
  15. // And broadcast the change from a scope in the controller
  16. $scope.$watch('someElement', function(nV,oV){
  17. if(nV===oV) return;
  18. $scope.$broadcast('zoomOut');
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement