angular


How to reload page with angular 2


how can i reload the current page on angular-2 via TypeScript?
If I navigate to the current page -that not work.
I don't want to change the url params, only to reload.
This should technically be achievable using window.location.reload():
HTML:
<button (click)="refresh()">Refresh</button>
TS:
refresh(): void {
window.location.reload();
}
Hopefully that helps!

Related Links

ng2-datepicker how to set or update date manually
How can I inject a string into a service factory?
It is possible to send files by the put method in Angular?
How do I create an autocomplete in angular-material2?
PouchDb is not working electron and angular4
Angular 2 auth seems not to work, although I receive a success message
Getting/creating ViewContainerRef without ViewChild query
After using “ionic run android” to deploy the app to phone, still exists the cross-domain?
Chat App not proper work in angularfire2
onClick function in Chart.js passing the selected object, Typescript
You may need an appropriate loader to handle this file type. Typescript
when i run npm i got this error. how to fix this?
Angular2 add nativeElement to component's prototype
Property 'value' does not exist on type 'ElementRef'
Getting all routes from current module - Angular 2
Ionic 2 Cache issue with tabs application

Categories

HOME
excel
docker
videochat
reporting-services
automation
umbraco7
keen-io
wlan
mapkit
opentsdb
xhtml
sage
rhel
webassembly
libreoffice-base
conv-neural-network
drupal-modules
spring-data-elasticsearch
biopython
bit-manipulation
accurev
react-boilerplate
mitmproxy
probability-theory
nattable
qtspim
boto
cut
indexoutofrangeexception
interceptor
hal
data-migration
jointjs
gearman
cloudfoundry-uaa
opensaml
gunicorn
angularjs-ng-model
nn
tridion
reduce
clisp
react-d3
friend-function
sqlitestudio
wamp-protocol
invoke
coupling
android-datepicker
powershell-tools
strstream
eclipse-indigo
nsthread
virtual-directory
ienumerable
numerical-analysis
gethostbyname
yahoo-messenger
fody-propertychanged
bullseye
foundation
pixman
gamma-function
reagent
safari9
date-arithmetic
navigationbar
firstdata
updatemodel
spn
yepnope
fluent-security
topcoat
mat-file
android.mk
rdata
server-side-scripting
wexitstatus
osx-gatekeeper
32feet
dynamic-content
pasteboard
rails-models
iasyncresult
iphone-3gs
smalldatetime
vtl
trx
maintenance-plan
isaserver
task-tracking

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile