Skip to content

Commit a997a88

Browse files
committed
refactor(router): use performance API for router view transitions (angular#60790)
Adds feature tracking for view transitions. PR Close angular#60790
1 parent 0506a0e commit a997a88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/router/src/provide_router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
Provider,
2828
runInInjectionContext,
2929
Type,
30+
ɵperformanceMarkFeature as performanceMarkFeature,
3031
} from '@angular/core';
3132
import {of, Subject} from 'rxjs';
3233

@@ -788,6 +789,7 @@ export function withComponentInputBinding(): ComponentInputBindingFeature {
788789
export function withViewTransitions(
789790
options?: ViewTransitionsFeatureOptions,
790791
): ViewTransitionsFeature {
792+
performanceMarkFeature('NgRouterViewTransitions');
791793
const providers = [
792794
{provide: CREATE_VIEW_TRANSITION, useValue: createViewTransition},
793795
{

0 commit comments

Comments
 (0)