Could you please tell me how to send data from one view to another using state. I don't want to use factory or service. I need to send the data using url and get the data from url and display it on view.
I have one field name
in my first View. I want to display on the second view whatever user enters in the input field. On button click, I need to send it to another view. I am able to go to the next view but how to send the data?
Plunker http://plnkr.co/edit/iDlzhzkz0pJKN2f2CZZe?p=preview
var loginCntrl = function($scope, $location, $state) {
$scope.testClick = function() {
$state.go("navigation2");
}
$scope.name = "";
/*$scope.fullname = function() {
return $scope.firstname + $scope.lastname;
};*/
}