Struggling with my first CRUD Application using AngularJS.
I've successfully created PHP web services for CRUD operations.
The issue arises when trying to edit a specific user (object in ng-repeat).
The goal is to transfer the user data from page (listUsers.html) to another page (addUser.html) in order to display their properties in input fields.
Currently, I have only one controller and am utilizing routing.
For example:
In ListUsers.html, there is a button that triggers the update() function on click and redirects to AddUser.html:
app1.controller('testController',function($scope,$http){
$scope.update=function(e){
$scope.message="testeeee";
$scope.newStudentt = e;
};
});
How can I pass the value of $scope.message to AddUser.html?