Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created April 30, 2022 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anytizer/675600f5f8e3e9c6ada24f07ffb55d76 to your computer and use it in GitHub Desktop.
Save anytizer/675600f5f8e3e9c6ada24f07ffb55d76 to your computer and use it in GitHub Desktop.
route.js
import { ActivatedRoute } from '@angular/router';
constructor(private activatedRoute: ActivatedRoute) {}
ngOnInit(){
const id = this.activatedRoute.snapshot.paramMap.get('id');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment