feat: add client take survey page (#626)

Fixes: #269
This commit is contained in:
Muskan Khedia
2020-07-13 16:41:01 +05:30
committed by GitHub
parent cdb6a46de7
commit 767d2cd235
9 changed files with 332 additions and 7 deletions
@@ -0,0 +1,30 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Clients Services */
import { ClientsService } from '../clients.service';
/**
* Take Survey data resolver.
*/
@Injectable()
export class TakeSurveyResolver implements Resolve<Object> {
/**
* @param {ClientsService} clientsService Client service.
*/
constructor(private clientsService: ClientsService) { }
/**
* Returns the All Survey Type and question data.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.clientsService.getAllSurveysType();
}
}