@@ -44,13 +44,13 @@ import {
4444} from 'igniteui-angular-charts' ;
4545import { timer } from 'rxjs' ;
4646import { debounce } from 'rxjs/operators' ;
47- import { LocalDataService } from './localData.service ' ;
48- import { Contract , REGIONS } from './localData /financialData' ;
47+ import { LocalData } from './local-data ' ;
48+ import { Contract , REGIONS } from './data /financialData' ;
4949import { NgIf , NgFor , CurrencyPipe } from '@angular/common' ;
5050import { ReactiveFormsModule , FormsModule } from '@angular/forms' ;
5151
5252@Component ( {
53- providers : [ LocalDataService ] ,
53+ providers : [ LocalData ] ,
5454 selector : 'app-<%=filePrefix%>' ,
5555 templateUrl : './<%=filePrefix%>.html' ,
5656 styleUrl : './<%=filePrefix%>.scss' ,
@@ -136,11 +136,11 @@ export class <%=ClassName%> implements OnInit, AfterViewInit, OnDestroy {
136136 private timer : any ;
137137 private volumeChanged : any ;
138138 constructor (
139- private localService : LocalDataService ,
139+ private localData : LocalData ,
140140 private elRef : ElementRef ,
141141 private cdr : ChangeDetectorRef ) {
142- this . subscription = this . localService . getData ( this . volume ) ;
143- this . localService . records . subscribe ( x => { this . data = x ; } ) ;
142+ this . subscription = this . localData . getData ( this . volume ) ;
143+ this . localData . records . subscribe ( x => { this . data = x ; } ) ;
144144 }
145145
146146 public ngOnInit ( ) : void {
@@ -166,7 +166,7 @@ export class <%=ClassName%> implements OnInit, AfterViewInit, OnDestroy {
166166 this . volumeChanged = this . volumeSlider . valueChange . pipe ( debounce ( ( ) => timer ( 200 ) ) ) ;
167167 this . volumeChanged . subscribe (
168168 ( ) => {
169- this . localService . getData ( this . volume ) ;
169+ this . localData . getData ( this . volume ) ;
170170 } ,
171171 ( err : string ) => console . log ( 'Error: ' + err ) ) ;
172172 }
0 commit comments