-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @link https://github.com/nonplus/angular-ui-router-default | ||
* | ||
* @license angular-ui-router-default v0.0.5 | ||
* @license angular-ui-router-default v0.0.6 | ||
* (c) Copyright Stepan Riha <[email protected]> | ||
* License MIT | ||
*/ | ||
|
@@ -30,7 +30,11 @@ angular.module(moduleName, ['ui.router']) | |
return fetchTarget(); | ||
function fetchTarget() { | ||
var target = $state.get(nextState, $state.$current); | ||
nextState = (target || {}).name; | ||
if (!target) { | ||
// default specification is invalid, let ui-router report the problem... | ||
return transitionTo.call($delegate, nextState, nextParams, nextOptions); | ||
} | ||
nextState = target.name; | ||
var absRedirectPromise = getAbstractRedirect(target); | ||
pendingPromise = absRedirectPromise; | ||
return $q.when(absRedirectPromise) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "angular-ui-router-default", | ||
"main": "angular-ui-router-default.js", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/nonplus/angular-ui-router-default", | ||
"authors": [ | ||
"Stepan Riha <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters