Created
January 21, 2015 13:43
-
-
Save simonmorley/bfa0e925b48497902e7c to your computer and use it in GitHub Desktop.
medium, creating a login screen, simple redirect function
This file contains hidden or 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
| var redirectUser = function() { | |
| if ( attrs.redirects !== undefined) { | |
| var redirects = JSON.parse(attrs.redirects); | |
| if (redirects.show_welcome) { | |
| $location.path('/welcome'); | |
| } else if (redirects.success_url) { | |
| $location.path(redirects.success_url); | |
| } | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment