File

C:/GoDev/src/TCSTK-Angular/projects/tibco-tcstk/tc-liveapps-lib/src/lib/resolvers/claims.resolver.ts

Index

Properties
Methods

Constructor

constructor(appDefinitionService: TcAppDefinitionService)
Parameters :
Name Type Optional
appDefinitionService TcAppDefinitionService No

Methods

resolve
resolve()
Returns : Observable<Claim>
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable, of } from 'rxjs';
import {LiveAppsService} from '../services/live-apps.service';
import {Claim} from '@tibco-tcstk/tc-core-lib';
import {map, mergeMap, take} from 'rxjs/operators';
import {TcAppDefinitionService} from '../services/tc-app-definition.service';

@Injectable()
export class ClaimsResolver implements Resolve<Observable<Claim>> {

  constructor(public appDefinitionService: TcAppDefinitionService) {}

  resolve(): Observable<Claim> {

    return of(this.appDefinitionService.claims);
  }

}

result-matching ""

    No results matching ""