location.reload(true) is deprecated
You can use location.reload() without the forceReload flag. This is just deprecated because it is not in the spec: https://www.w3.org/TR/html50/browsers.html#dom-location-reload
You can use location.reload() without the forceReload flag. This is just deprecated because it is not in the spec: https://www.w3.org/TR/html50/browsers.html#dom-location-reload
this.$router.go() does exactly this; if no arguments are specified, the router navigates to current location, refreshing the page. note: current implementation of router and its history components don’t mark the param as optional, but IMVHO it’s either a bug or an omission on Evan You’s part, since the spec explicitly allows it. I’ve filed an … Read more
While this is old question you need to know that ever since version 19.0 gunicorn has had the –reload option. So now no third party tools are needed.
Use onClick with window.location.reload(), i.e. : <button onClick=”window.location.reload();”>Refresh Page</button> Or history.go(0), i.e.: <button onClick=”history.go(0);”>Refresh Page</button> Or window.location.href=window.location.href for ‘full‘ reload, i.e.: <button onClick=”window.location.href=window.location.href”>Refresh Page</button> The Button element – developer.mozilla.org
Or (use ‘your.namespace :reload)
Try to use: location.reload(true); When this method receives a true value as argument, it will cause the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache. More info: The location object
For the record, to force angular to re-render the current page, you can use: $route.reload(); According to AngularJS documentation: Causes $route service to reload the current route even if $location hasn’t changed. As a result of that, ngView creates new scope, reinstantiates the controller.
Try this magic spell: vm.$forceUpdate(); //or in file components this.$forceUpdate(); No need to create any hanging vars 🙂 Update: I found this solution when I only started working with VueJS. However further exploration proved this approach as a crutch. As far as I recall, in a while I got rid of it simply putting all … Read more
You can reload a module when it has already been imported by using importlib.reload(): from importlib import reload # Python 3.4+ import foo while True: # Do some things. if is_changed(foo): foo = reload(foo) In Python 2, reload was a builtin. In Python 3, it was moved to the imp module. In 3.4, imp was … Read more
You can enter the long form command: source ~/.bashrc or you can use the shorter version of the command: . ~/.bashrc