mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
refactor(@core): refactor data services for better integration (#1997)
With this change all components, which used data services before, now use abstract classes of service interfaces, mock services extend interface services, CoreModule contains code to inject a needed implementation of some service.
This commit is contained in:
parent
f17aa32c6d
commit
cac36f0717
67 changed files with 389 additions and 201 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, OnDestroy } from '@angular/core';
|
||||
import { TrafficList, TrafficListService } from '../../../@core/data/traffic-list.service';
|
||||
import { TrafficList, TrafficListData } from '../../../@core/data/traffic-list';
|
||||
import { TrafficBarData, TrafficBar } from '../../../@core/data/traffic-bar';
|
||||
import { takeWhile } from 'rxjs/operators';
|
||||
import { TrafficBar, TrafficBarService } from '../../../@core/data/traffic-bar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-traffic-reveal-card',
|
||||
|
|
@ -17,8 +17,8 @@ export class TrafficRevealCardComponent implements OnDestroy {
|
|||
revealed = false;
|
||||
period: string = 'week';
|
||||
|
||||
constructor(private trafficListService: TrafficListService,
|
||||
private trafficBarService: TrafficBarService) {
|
||||
constructor(private trafficListService: TrafficListData,
|
||||
private trafficBarService: TrafficBarData) {
|
||||
this.getTrafficFrontCardData(this.period);
|
||||
this.getTrafficBackCardData(this.period);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue