import { Location } from "@angular/common" ; import { Component } from "@angular/core" ; import { I18nService } from "jslib-common/abstractions/i18n.service" ; import { PasswordGenerationService } from "jslib-common/abstractions/passwordGeneration.service" ; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service" ; import { PasswordGeneratorHistoryComponent as BasePasswordGeneratorHistoryComponent } from "jslib-angular/components/password-generator-history.component" ; @ Component ( { selector : "app-password-generator-history" , templateUrl : "password-generator-history.component.html" , } ) export class PasswordGeneratorHistoryComponent extends BasePasswordGeneratorHistoryComponent { constructor ( passwordGenerationService , platformUtilsService , i18nService , private location ) { super ( passwordGenerationService , platformUtilsService , i18nService , window ) ; } close ( ) { this . location . back ( ) ; } }