我已经实现了Web应用程序,在该应用程序中,我们已将数据从1个视图传递到另一个视图,但是控制器是相同的。我已经尝试过,但是如果页面重定向后出现未定义的值,我将无法理解“我的代码有错吗?
在下面的代码中 页面重定向后,$ scope.selectedServiceId参数将是未定义的我得到此值如何获得此值?
//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>