Return to site

ANGULAR: How can we pass parameter in Routing?

· github,fullstack

1. On the html page, use like:

 

2. After that, in component (.ts) file:
a) Inject ActivatedRoute in constructor like:

 

b) After that, use like: