set toggleShowDetails() to scroll into the viewport using anchors
This commit is contained in:
parent
ac91d814d6
commit
8ccdf3973c
@ -192,6 +192,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
relativeTo: this.route,
|
relativeTo: this.route,
|
||||||
queryParams: { showDetails: false },
|
queryParams: { showDetails: false },
|
||||||
queryParamsHandling: 'merge',
|
queryParamsHandling: 'merge',
|
||||||
|
fragment: 'block'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.showDetails = true;
|
this.showDetails = true;
|
||||||
@ -199,6 +200,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
relativeTo: this.route,
|
relativeTo: this.route,
|
||||||
queryParams: { showDetails: true },
|
queryParams: { showDetails: true },
|
||||||
queryParamsHandling: 'merge',
|
queryParamsHandling: 'merge',
|
||||||
|
fragment: 'details'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user