Created
March 27, 2015 23:45
-
-
Save ihsanberahim/a4503aa340f192441d52 to your computer and use it in GitHub Desktop.
reset angular in cordova app
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
window.origin = window.location.href.replace(window.location.hash,'').replace(window.location.search,'').replace('#',''); | |
var reset_app = function() | |
{ | |
window.open(window.origin,'_top'); | |
} | |
/** | |
* http://ihsanberahim.com | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment