### File

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

### Index

###### Methods
resolve

### Constructor

`constructor(clusterService: ClusterService)`
Defined in src/app/cluster/shared/cluster.resolver.ts:10
Parameters :
Name | Type | Optional
clusterService | `ClusterService` | No

### Methods

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

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

    import { ClusterService } from './cluster.service';
    import { Cluster } from './cluster.model';

    /* not using this resolver for now since it will break the page when reload the page */

    @Injectable()
    export class ClusterResolver implements Resolve<Cluster> {
      constructor(private clusterService: ClusterService) {}

      resolve(route: ActivatedRouteSnapshot) {
        return this.clusterService.get(route.paramMap.get('name'));
      }
    }

# results matching ""

# No results matching ""