mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-18 05:58:07 +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,5 +1,5 @@
|
|||
import { Component, OnDestroy } from '@angular/core';
|
||||
import { ProgressInfo, StatsProgressBarService } from '../../../@core/data/stats-progress-bar.service';
|
||||
import { ProgressInfo, StatsProgressBarData } from '../../../@core/data/stats-progress-bar';
|
||||
import { takeWhile } from 'rxjs/operators';
|
||||
|
||||
@Component({
|
||||
|
|
@ -13,7 +13,7 @@ export class ECommerceProgressSectionComponent implements OnDestroy {
|
|||
|
||||
progressInfoData: ProgressInfo[];
|
||||
|
||||
constructor(private statsProgressBarService: StatsProgressBarService) {
|
||||
constructor(private statsProgressBarService: StatsProgressBarData) {
|
||||
this.statsProgressBarService.getProgressInfoData()
|
||||
.pipe(takeWhile(() => this.alive))
|
||||
.subscribe((data) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue