import { Component } from '@angular/core' ; import { MnemonicSecret } from '../../models/secret' ; import { ErrorCategory , handleErrorLocal } from '../../services/error-handler/error-handler.service' ; import { NavigationService } from '../../services/navigation/navigation.service' ; @ Component ( { selector : 'airgap-secret-rules' , templateUrl : './secret-rules.page.html' , styleUrls : [ './secret-rules.page.scss' ] } ) export class SecretRulesPage { private readonly secret : MnemonicSecret ; constructor ( private readonly navigationService ) { this . secret = this . navigationService . getState ( ) . secret ; } public goToShowSecret ( ) { this . navigationService . routeWithState ( 'secret-show' , { secret : this . secret } ) . catch ( handleErrorLocal ( ErrorCategory . IONIC_NAVIGATION ) ) ; } }