/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { GroupsService } from '../groups.service' ; /**
 * Group Datatables data resolver.
 */ @ Injectable ( ) export class GroupDatatablesResolver implements Resolve < Object > { param { GroupsService } GroupsService constructor ( private groupsService ) { } returns { Observable < any > } resolve ( ) { return this . groupsService . getGroupDatatables ( ) ; } }