Cookbooks / View transitions
Wrap in-page updates in document.startViewTransition(). For route changes, pass withViewTransitions() to Angular’s provideRouter. Base UI dialog boxes already set view-transition-name: base-dialog.
The active panel uses view-transition-name: base-tab-panel. Switch to morph the content.
In-page tabs keep the URL. Use the router (and withViewTransitions()) when the panel should be a real route.
Open a modal inside the view-transition callback.
provideRouter(routes, withViewTransitions())
document.startViewTransition(() => this.panel.set('activity'));document.startViewTransition(() => {
this.dialog.open(SettingsDialogComponent);
});