import { Component } from '@angular/core' ; import { Router } from '@angular/router' ; @ Component ( { providers : [ ] , templateUrl : './offline.component.html' , styleUrls : [ 'offline.component.scss' ] } ) export class OfflineComponent { param { Router } router memberof constructor ( private router ) { console . log ( 'Offline mode' ) ; } }