import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; import { VcsService } from '../vcs' ; @ Injectable ( ) export class WizardVcsAuthenticationInfoExistsResolver implements Resolve < boolean > { constructor ( private vcs ) { } resolve ( ) { return this . vcs . isAuthenticationInfoExists ( ) ; } }