I have implemented the web application in which we have passed the data from 1 view to another view but controller is same.i have tried but in case I got undefined value after the page is redirect.i don’t understand what ’s wrong in my code?
In below code $scope.selectedServiceId param will be undefined after page redirect i get this value how to get this value ?
//assign the diff parameter..
$scope.setRatingToSelectedItem = function(value) {
$scope.selectedServiceId = value;
}
View 1 > ratingChart -
call function and change view i have pass this data in another page
view 2 > airtport
In this page we have receive the data but due to page redirection value will be undefined
<button class="border-none white border-radius5 padding-tb10 padding-lr35
bg_darkblue" ng-click="getDetailViaCategoryWise('Airport', airport)">
<a href="#!airport?{{airport.id}}">
<span style="color:white;">
Rating Chart
</span>
</a>
</button>