### File

`src/app/resource/shared/resource.resolver.ts`

### Index

###### Methods
resolve

### Constructor

`constructor(service: ResourceService)`
Defined in src/app/resource/shared/resource.resolver.ts:8
Parameters :
Name | Type | Optional
service | `ResourceService` | No

### Methods

resolve
`resolve(route: ActivatedRouteSnapshot)`
Defined in src/app/resource/shared/resource.resolver.ts:11
Parameters :
Name | Type | Optional
route | `ActivatedRouteSnapshot` | No
Returns : `any`

    import { Injectable } from '@angular/core';
    import { Resolve, ActivatedRouteSnapshot } from '@angular/router';

    import { ResourceService } from './resource.service';
    import { Resource } from './resource.model';

    @Injectable()
    export class ResourceResolver implements Resolve<Resource> {
      constructor(private service: ResourceService) {}

      resolve(route: ActivatedRouteSnapshot) {
        return this.service.get(
          route.paramMap.get('cluster_name'),
          route.paramMap.get('resource_name')
        );
      }
    }

# results matching ""

# No results matching ""