Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to transfer data from one page to another page

What I have tried:

<table style="width:100%"><tbody>
				
					  <tr ng-repeat="item in user | filter : tableSearch | limitTo : pageSize">
						<td>{{item.id}}</td>
						<td>{{item.title}}</td>	
						
						
						<td><input type="button" value="ViewDetails" ng-click="viewDetails(item.id)"/></td>
						<td><input type="button" value="DeleteRow" ng-click="deleteRow()"/></td>
						
					  </tr>
				</tbody>
					  
			</table>


$scope.viewDetails=function(id)
                 { 
                    // alert(id);
                   //$location.url('http://www.google.com');
				   //$location.path('http://www.google.com');
				   
				   $window.location.href = 'viewDetails.html';
				  
				  // $state.go('/viewDetails', {id: id});
				   
				    //$location.path("viewDetails"+id);
				  
				   
				   

                 };
Posted
Updated 24-Apr-16 5:03am
v2

1 solution

Hello,

Check the below query and discussion. This I feel is the same requirement as of yours.

AngularJS - Passing data between pages[^]
I hope this helps.
Thanks
 
Share this answer
 
Comments
Member 12139960 24-Apr-16 15:19pm    
In this Solution data is being shared using factory, what i am looking how to transfer data without using factory because i have data which is supposed to be transfer is in my controller.
Sergey Alexandrovich Kryukov 24-Apr-16 22:38pm    
Of course it is possible without using a factory, but how should I understand the way you ask questions? On next step, someone gives you another advice, using the facility X, and you will write: "You solution is using X; what I am looking how to transfer data without using X". You need ask "honest" questions, without hidden conditions. In all cases, if some advice cannot satisfy you, you should at least properly motivate it. Not many people like wasting time.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900