diff --git a/src/ng2/directives/uiSrefStatus.ts b/src/ng2/directives/uiSrefStatus.ts index c57f28562..94d2bd90e 100644 --- a/src/ng2/directives/uiSrefStatus.ts +++ b/src/ng2/directives/uiSrefStatus.ts @@ -41,6 +41,7 @@ const inactiveStatus: SrefStatus = { * match the (tail of) the path, and the path's param values */ const pathMatches = (target: TargetState): Predicate => { + if (!target.exists()) return () => false; let state: State = target.$state(); let targetParamVals = target.params(); let targetPath: PathNode[] = PathFactory.buildPath(target);