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

kendo chart tooltip custom position on plot area
how to handle a click event of button inside of .html file to a function inside of .ts file, in ionic2
Angular-Cli input[type=date] focus switching
this.strategyService.getAllstrategys(…).subscribe is not a function
Angular 2 / Ionic 2 post request body
Angular 2 Http-Post is not working
Property 'subscribe' does not exist on type 'Promise'
Angular4- on change select box returns wrong value
AOT Compilation error in angular library
Angular, Ionic2 Configure #ViewChild every time it is initialized
Angular ViewContainerRef and its ViewRefs - dynamic versus declarative?
Setting one parameter to a certain value upon entering a different parameter - NgSwitch?
Angular 2 page transition while leaving page
Adding the Multiselect feature to an Angular4 dropdown?
Add lines of code depending on folder structure - Precompiler?
Angular2 Rxjs Observable catch method compilation error

Categories

HOME
sails.js
sitecore8
reporting-services
jsoup
web-crawler
dropzone.js
speech-recognition
mapkit
purescript
geometry
log4net
navbar
alexa-voice-service
shogun
video.js
postgresql-9.0
trackjs
jxmaps
cider
mysql-error-1064
edi
pgadmin
spacing
lsmeans
angular2-http
digestive-functors
oracle-ebs
oclazyload
lsof
cakephp-3.3
monocle-scala
crypto++
on-screen-keyboard
vqmod
jquery-tags-input
unite.vim
vibration
aide-ide
mechanize
nibble
simplify
assignment-operator
yard
xcode-bots
ssas-2008
xamarin-forms
smslib
jquery-dynatree
google-plugin-eclipse
ilias
pre-commit-hook
basic-msi
mathgl
linq-to-lucene
policies
texmacs
django-1.2
fluent-security
emacs-semantic
android.mk
mic-1
cgimagesource
robohelp
nservicebus3
google-ad-manager
silverlight-embedded
iphone-sdk-4.1
jquery-ui-plugins

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile