In my Angular 4 component I have something like:
constructor(private route: ActivatedRoute) { } ngOnInit() { this.myId
If using route.snapshot.paramMap.get( 'uuid' ) instead:
import { ActivatedRoute, convertToParamMap } from '@angular/router'; { provide: ActivatedRoute, useValue: { snapshot: { paramMap: convertToParamMap( { 'uuid': '99-88-77' } ) } } }