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
<!-- Check For Customer Data In sharedData --> | |
if (sharedData.getNewlyAddedCustomer() != null) { | |
<!-- The Data Exists In sharedData, add it to $scope and Proceed Normally --> | |
$scope.newlyAddedCustomerRequest = sharedData.getNewlyAddedCustomerRequest(); | |
} else { | |
<!-- The Data DOES NOT Exist In sharedData, Let's check the hash and see if we can re-fetch --> | |
var path = $location.path(); | |
var splitPath = path.split("/"); | |
<!-- When we eval our split path we can eval to see if we have info after the route | |
if (splitPath.length > 2) { |
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
$scope.startPolling = function () { | |
$scope.isPolling = true; | |
$scope.pollCount = 60; | |
$scope.keepPolling(); | |
}; | |
$scope.stopPolling = function () { | |
$scope.isPolling = false; | |
$scope.pollCount = 60; | |
}; |