How can i pass data or value from one page to another in angular single page application . This is my first time to work with angular/typescript and javascript as a whole.
My objective is to pass userid to edit user page.
I am using
 "angular": "^1.7.2",
 "angular-route": "^1.7.2",
My current structure is something like this in route.js
app.config(function($routeProvider){
  $routeProvider
  .when('/',{
    templateUrl:'home.html'
  })
  .when('/user',{
    templateUrl:'showUsers.html'
  })
.when('/user-edit/:userId',{
  templateUrl:'editUser.html'
})
})
in showUsers.html
<a href="#!user-edit/92">User Edit screen</a>
Now what i want to do is to capture the userId in jquery script of user edit screen so i can get user data.
How can i do that??
I m following
I also followed some questions over stack overflow
How do I pass data to Angular routed components? But that did not help me.
 
     
     
    