diff --git a/src/ng1/services.ts b/src/ng1/services.ts index 62f8791f1..0af5564f7 100644 --- a/src/ng1/services.ts +++ b/src/ng1/services.ts @@ -273,7 +273,10 @@ function getTransitionsProvider() { loadAllControllerLocals.$inject = ['$transition$']; function loadAllControllerLocals($transition$) { const loadLocals = (vc: Ng1ViewConfig) => { - let resolveCtx = ( find($transition$.treeChanges().to, propEq('state', vc.viewDecl.$context))).resolveContext; + let node = ( find($transition$.treeChanges().to, propEq('state', vc.viewDecl.$context))); + // Temporary fix; This whole callback should be nuked when fixing #2662 + if (!node) return services.$q.when(); + let resolveCtx = node.resolveContext; let controllerDeps = annotateController(vc.controller); let resolvables = resolveCtx.getResolvables();