Search Posts

Author: Atharv Thakur

Pop window does not closes after calling hide also in Angular JS

This is my function (function(){ ‘use strict’; function TablePopUpController($http, prod, tableName, $mdDialog, $scope,$timeout,$location) { $scope.tableName=tableName; var datas=[]; //$location.reload(); $scope.submitData = function() { if (tableName == ‘WFSmartPriority’) { var url = prod.TrfUrl + “/GetWFSmartPriority?tableName=” + tableName + “&OrgID=” + $scope.OrgID+”&”+prod.TrfApiKey+”&callback=JSON_CALLBACK”; $http.jsonp(url).success(function(data) { datas=data.GetWFSmartPriorityResult; // console.log(datas); hideData(datas);// Calling function to hide pop ip }); } else { if($scope.market==undefined) $scope.market=’ ‘; if($scope.OrgID==undefined) $scope.OrgID=0; if($scope.userGroupID==undefined) $scope.userGroupID=0; var url = prod.TrfUrl + “/GetWFMarketOrgUserGroup?tableName=” + tableName + “&OrgID=” + $scope.OrgID + […]