on-internet
← Community

How to pass the value and get the value from another page via routerlink in angular4?

Stack Overflow ·

I want to pass a value with URL using routerLink and read that value on another page. Like I have Modules and Submodules. On select of first record the id of that record pass to User page. After read that Userid I want to show detail of that User and modules/submodules. So How can I pass and get the Values(object)? Userdetails Component class: import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'userdetail', templateUrl: './userdetail.component.html', styleUrls: ['./userdetail.component.css'] }) export class UserdetailComp

Comments

Sign in or sign up to comment and upvote.

No comments yet.