src/app/about/about.service.ts
Methods |
Accessors |
constructor(sharedAboutService: SharedAboutService)
|
||||||||
Defined in src/app/about/about.service.ts:8
|
||||||||
Constructor
Parameters :
|
getAboutInfo | ||||||||
getAboutInfo(reload?: boolean)
|
||||||||
Defined in src/app/about/about.service.ts:59
|
||||||||
Get Info
Parameters :
Returns :
Observable<AboutInfo>
|
getDetails |
getDetails()
|
Defined in src/app/about/about.service.ts:70
|
Get details
Returns :
Observable<AboutInfo>
|
aboutInfo |
getaboutInfo()
|
Defined in src/app/about/about.service.ts:23
|
Get About info
Returns :
AboutInfo
|
featureInfo | ||||||||
getfeatureInfo()
|
||||||||
Defined in src/app/about/about.service.ts:32
|
||||||||
Get Feature Info
Returns :
FeatureInfo
|
||||||||
setfeatureInfo(featureInfo: )
|
||||||||
Defined in src/app/about/about.service.ts:41
|
||||||||
Set Feature info
Parameters :
Returns :
void
|
featureInfoSubject |
getfeatureInfoSubject()
|
Defined in src/app/about/about.service.ts:49
|
Get Feature Info Subject
Returns :
Subject<FeatureInfo>
|
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { SharedAboutService } from '../shared/services/shared-about.service';
import { FeatureInfo } from '../shared/model/about/feature-info.model';
import { AboutInfo } from '../shared/model/about/about-info.model';
@Injectable()
export class AboutService {
/**
* Constructor
*
* @param {SharedAboutService} sharedAboutService
*/
constructor(private sharedAboutService: SharedAboutService) {
}
/**
* Get About info
*
* @returns {AboutInfo}
*/
public get aboutInfo(): AboutInfo {
return this.sharedAboutService.aboutInfo;
}
/**
* Get Feature Info
*
* @returns {FeatureInfo}
*/
public get featureInfo(): FeatureInfo {
return this.sharedAboutService.featureInfo;
}
/**
* Set Feature info
*
* @param {FeatureInfo} featureInfo
*/
public set featureInfo(featureInfo: FeatureInfo) {
this.sharedAboutService.featureInfo = featureInfo;
}
/**
* Get Feature Info Subject
* @returns {Subject<FeatureInfo>}
*/
public get featureInfoSubject(): Subject<FeatureInfo> {
return this.sharedAboutService.featureInfoSubject;
}
/**
* Get Info
*
* @param {boolean} reload
* @returns {Observable<AboutInfo>}
*/
getAboutInfo(reload?: boolean): Observable<AboutInfo> {
if (reload) {
this.sharedAboutService.loadAboutInfo(reload);
}
return this.sharedAboutService.getAboutInfo();
}
/**
* Get details
* @returns {Observable<AboutInfo>}
*/
getDetails(): Observable<AboutInfo> {
return this.sharedAboutService.getAboutInfo();
}
}