Skip to content
Snippets Groups Projects
Commit a0b6094b authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: unit tests

parent cb9f4dfe
No related branches found
No related tags found
No related merge requests found
import { Directive, EventEmitter, OnDestroy, OnInit, Output } from "@angular/core";
import { Subscription } from "rxjs";
import { RegionalFeaturesService } from "./regionalFeature.service";
import { RegionFeatureBase } from "./regionFeature.base";
@Directive({
......@@ -13,6 +14,16 @@ export class RegionGetAllFeaturesDirective extends RegionFeatureBase implements
private subscriptions: Subscription[] = []
/**
* since the base class has DI
* sub class needs to call super() with the correct DI
*/
constructor(
rfService: RegionalFeaturesService
){
super(rfService)
}
ngOnInit(){
this.subscriptions.push(
this.isLoading$.subscribe(val => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment