Last active
February 24, 2021 23:55
-
-
Save andrewarosario/422c4116c1d06c71a6fde704e0707b67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-user-detail', | |
templateUrl: './user-detail.component.html', | |
}) | |
export class UserDetailComponent { | |
public userId$ = this.route.paramMap.pipe(map(params => params.get('id'))); | |
constructor(private route: ActivatedRoute) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment