diff --git a/src/stateDirectives.js b/src/stateDirectives.js index e62bafe92..d02add989 100644 --- a/src/stateDirectives.js +++ b/src/stateDirectives.js @@ -178,7 +178,7 @@ function $StateRefDynamicDirective($state, $timeout) { def.state = group[0]; def.params = group[1]; def.options = group[2]; def.href = $state.href(def.state, def.params, def.options); - if (active) active.$$addStateInfo(ref.state, def.params); + if (active) active.$$addStateInfo(def.state, def.params); if (def.href) attrs.$set(type.attr, def.href); }