Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. var Canvas = angular.module('canvas');
  2.  
  3. Canvas.controller("excelOperation",function($scope,Data,SharedData,$http){
  4.  
  5. $scope.tbody=$scope.$parent.shared.previews;
  6.  
  7. $scope.$watch('$parent.shared.previews',function(newVal,oldVal){
  8. console.log("WORKING");
  9. })
  10.  
  11. setInterval(function(){
  12. console.log($scope.$parent.shared.previews);
  13. },1000)
  14.  
  15. /**
  16. * Populate table function to populate excel table
  17. */
  18. $scope.populateTable=function()
  19. {
  20.  
  21. }
  22. })
  23.  
  24. var deepWatch = true;
  25. $scope.$watch('$parent.shared.previews', function(newVal, oldVal) {
  26. console.log("WORKING");
  27. }, deepWatch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement