From cc85e76a29026b832dbd7ad67002214f2a5ffdd8 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sun, 6 Nov 2016 14:27:32 -0600 Subject: [PATCH] fix(view): Load view prerequisites in `onFinish` Closes: https://github.com/angular-ui/ui-router/issues/3134 --- src/hooks/views.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/views.ts b/src/hooks/views.ts index 69cc0e16..f8c57560 100644 --- a/src/hooks/views.ts +++ b/src/hooks/views.ts @@ -23,7 +23,7 @@ const loadEnteringViews: TransitionHookFn = (transition: Transition) => { }; export const registerLoadEnteringViews = (transitionService: TransitionService) => - transitionService.onStart({}, loadEnteringViews); + transitionService.onFinish({}, loadEnteringViews); /** * A [[TransitionHookFn]] which activates the new views when a transition is successful.