maciejtreder/angular-universal-pwa

View on GitHub
application/src/app/transfer-state/with-transfer-state.component.ts

Summary

Maintainability
B
4 hrs
Test Coverage
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

@Component({
    templateUrl: './transfer-state.component.html',
    styleUrls: ['./transfer-state.component.css']
})
export class WithTransferStateComponent 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();
    }
}