|
|
|
@ -41,6 +41,7 @@ import { CustomDialogService } from '@home/components/widget/dialog/custom-dialo |
|
|
|
import { DatePipe } from '@angular/common'; |
|
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
|
import { DomSanitizer } from '@angular/platform-browser'; |
|
|
|
import { Router } from '@angular/router'; |
|
|
|
|
|
|
|
@Directive() |
|
|
|
export class DynamicWidgetComponent extends PageComponent implements IDynamicWidgetComponent, OnInit, OnDestroy { |
|
|
|
@ -77,6 +78,7 @@ export class DynamicWidgetComponent extends PageComponent implements IDynamicWid |
|
|
|
this.ctx.translate = $injector.get(TranslateService); |
|
|
|
this.ctx.http = $injector.get(HttpClient); |
|
|
|
this.ctx.sanitizer = $injector.get(DomSanitizer); |
|
|
|
this.ctx.router = $injector.get(Router); |
|
|
|
|
|
|
|
this.ctx.$scope = this; |
|
|
|
if (this.ctx.defaultSubscription) { |
|
|
|
|