|
|
@ -40,6 +40,7 @@ import { DialogService } from '@core/services/dialog.service'; |
|
|
import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service'; |
|
|
import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service'; |
|
|
import { DatePipe } from '@angular/common'; |
|
|
import { DatePipe } from '@angular/common'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
|
|
|
import { DomSanitizer } from '@angular/platform-browser'; |
|
|
|
|
|
|
|
|
export class DynamicWidgetComponent extends PageComponent implements IDynamicWidgetComponent, OnInit, OnDestroy { |
|
|
export class DynamicWidgetComponent extends PageComponent implements IDynamicWidgetComponent, OnInit, OnDestroy { |
|
|
|
|
|
|
|
|
@ -74,6 +75,7 @@ export class DynamicWidgetComponent extends PageComponent implements IDynamicWid |
|
|
this.ctx.date = $injector.get(DatePipe); |
|
|
this.ctx.date = $injector.get(DatePipe); |
|
|
this.ctx.translate = $injector.get(TranslateService); |
|
|
this.ctx.translate = $injector.get(TranslateService); |
|
|
this.ctx.http = $injector.get(HttpClient); |
|
|
this.ctx.http = $injector.get(HttpClient); |
|
|
|
|
|
this.ctx.sanitizer = $injector.get(DomSanitizer); |
|
|
|
|
|
|
|
|
this.ctx.$scope = this; |
|
|
this.ctx.$scope = this; |
|
|
if (this.ctx.defaultSubscription) { |
|
|
if (this.ctx.defaultSubscription) { |
|
|
|