how to see non login user page in portal

dheeru_1994
Tera Contributor

 Hi all i have requirement 
i am working in service portal  in html i write code 

<div>
  
  {{data.record}}
    <button class='btn btn-primary' ng-click='goHome()'>Click Here</button>
"
    <table>
        <thead>
            <tr>
                <th>FirstName</th>
                <th>LastName</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in thirdData">
                <td>{{ item.u_firstname }}</td>
                <td>{{ item.u_lastname }}</td>
            </tr>
        </tbody>
    </table>
</div>

and in client side i wrote this code 

		api.controller = function($scope, $timeout, $location, $uibModal, $http) {
				/* widget controller */
				var c = this;
				$scope.thirdData = {};
				$scope.goHome = function() {
						$http({
								method: 'GET',
								url: 'https://instance number.service-now.com/api/now/table/u_practical_demo?sysparm_limit=10',
						}).then(function success(response) {

								$scope.thirdData = response.data.result;
							var pr =   $scope.thirdData
							alert (JSON.stringify(pr))
						}, function fail(response) {


								$scope.thirdData = response;
								var gr =    $scope.thirdData
								alert (gr);
						});
				};
		};

in service now working all deta getting  but when non login user try to click on button no data getting 
is there any thing else which can work for non login user  
and any other method that can work 
any help highly appreciated 

0 REPLIES 0