I have a problem. I have textbox where i need to enter a pin and button for submit, and when user click on button i get popupt that contains data for that pin. When user click on that button it display url something like this :
http://localhost:60664/#?ticketid=87879578 
Now i need to handle function when i open in another window that link to be able to see that popup. How can i do that?
This is my function that works on click:
$scope.ShowDetails = function (pin) {
    if ($scope.showdetail == false && pin != null) {
        $scope.pin = pin;
        $http.get(Url + 'Get/' + $scope.pin)
            .success(function(data, status, headers, config) 
            {
               $("#background").addClass("darker");
                $scope.showdetail = true;
                $scope.NotFound = false;
                $location.search('pinid', pinTicket);
            })
            .error(function(data, status, headers, config) {
                $scope.NotFound = true;
                $scope.showdetail = false;
        })
       .then(Details, ErrorResponse);
    }
}
 
     
    