import { Injectable } from '@angular/core' ; import { GroupsUtilsService } from "../../services/groups/groups-utils.service" ; import { Resolve } from "@angular/router" ; @ Injectable ( ) export class MyGroupsResolve implements Resolve < any > { constructor ( private groupUtils ) { } resolve ( ) { return this . groupUtils . getMyGroups ( ) ; } }