I am currently facing an issue with my modal view that is used for user login. I need to retrieve the user id from the modal and pass it back to the view behind. I attempted using $state.go but it was unsuccessful. Additionally, using ng-href would not work due to different URL setups in routes, and I am unsure how to handle multiple URLs per state.
$scope.goToState1 = function () {
$state.go('details',{user: $scope.user, email: $scope.email});
}
Currently, I have linked this functionality to a button using ng-click. My main question is how to successfully send parameters back. Any assistance is greatly appreciated. Thank you!