application/src/app/transfer-state/without-transfer-state.component.ts
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
templateUrl: './transfer-state.component.html',
styleUrls: ['./transfer-state.component.css']
})
export class WithoutTransferStateComponent implements OnInit {
public hits: string;
public shake: boolean = false;
constructor(private route: ActivatedRoute) {}
public ngOnInit() {
this.hits = this.route.snapshot.data.hits;
}
public performRequest(): void {
window.location.reload();
}
}