We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c113b37 commit c9b6570Copy full SHA for c9b6570
src/ng2/directives/uiSrefStatus.ts
@@ -41,6 +41,7 @@ const inactiveStatus: SrefStatus = {
41
* match the (tail of) the path, and the path's param values
42
*/
43
const pathMatches = (target: TargetState): Predicate<PathNode[]> => {
44
+ if (!target.exists()) return () => false;
45
let state: State = target.$state();
46
let targetParamVals = target.params();
47
let targetPath: PathNode[] = PathFactory.buildPath(target);
0 commit comments