Use ActivatedRoute instead of ActivatedRouteSnapshot. Then you can use the snapshot like this:
constructor(activatedRoute: ActivatedRoute) {
var snapshot = activatedRoute.snapshot;
}
Use ActivatedRoute instead of ActivatedRouteSnapshot. Then you can use the snapshot like this:
constructor(activatedRoute: ActivatedRoute) {
var snapshot = activatedRoute.snapshot;
}