Skip to content

Commit

Permalink
fix(uiSref): should inherit params by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nateabele committed Apr 24, 2014
1 parent 9cf764e commit b973dad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/stateDirectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ function $StateRefDirective($state, $timeout) {
var isForm = element[0].nodeName === "FORM";
var attr = isForm ? "action" : "href", nav = true;

var options = {
relative: base
};
var options = { relative: base, inherit: true };
var optionsOverride = scope.$eval(attrs.uiSrefOpts) || {};

angular.forEach(allowedOptions, function(option) {
if (option in optionsOverride) {
options[option] = optionsOverride[option];
Expand Down

0 comments on commit b973dad

Please sign in to comment.