angular 6 reload current page
import { DOCUMENT } from '@angular/common';
import { Component, Inject } from '@angular/core';
@Component({
selector: 'app-refresh-banner-notification',
templateUrl: './refresh-banner-notification.component.html',
styleUrls: ['./refresh-banner-notification.component.scss']
})
export class RefreshBannerNotificationComponent {
constructor(
@Inject(DOCUMENT) private _document: Document
) {}
refreshPage() {
this._document.defaultView.location.reload();
}
}
Also in JavaScript:
- javascript ajax request
- react redux counter tutorial
- how to add a class in classlist and remove after 100 ms using jquery
- angular router with wuery param
- js immutable update object
- how to get the square root in js
- Discord.js Get A Bot To Join A Music Chanel
- jquery detect change in textarea content
- array find
- flag svg javascript
- REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE
- firestore update map
- longitud objeto javascript
- javascript object tostring
- javascript loop an array check if a number is even
- image react native base64
- documenting functions javascript
- jquery check input is disable
- angular two way property binding
- how to print diamond pattern in javascript
- c# convert object to json
- how to add css based on route react
- how to get the end of an array javascript
- confirm closing tab