mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
12 lines
248 B
TypeScript
12 lines
248 B
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { of as observableOf, Observable } from 'rxjs';
|
||
|
|
|
||
|
|
@Injectable()
|
||
|
|
export class SolarService {
|
||
|
|
private value = 42;
|
||
|
|
|
||
|
|
getSolarData(): Observable<number> {
|
||
|
|
return observableOf(this.value);
|
||
|
|
}
|
||
|
|
}
|