Skip to content

Commit

Permalink
Update app.module.ts
Browse files Browse the repository at this point in the history
root scope implementation for custom js scripts
  • Loading branch information
msmannan00 authored Oct 17, 2024
1 parent e817f5d commit 35fbd56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {TranslationService} from "@app/services/helper/translation.service";
import {NgbDatepickerI18n} from '@ng-bootstrap/ng-bootstrap';
import {CustomDatepickerI18n} from '@app/shared/services/custom-datepicker-i18n';
import {registerLocales} from '@app/services/helper/locale-provider';
import {AppDataService} from "@app/app-data.service";

// Register all the locales
registerLocales();
Expand Down Expand Up @@ -139,8 +140,9 @@ const translationModule = TranslateModule.forRoot({
})
export class AppModule implements OnDestroy {

constructor(private cryptoService:CryptoService, private authenticationService: AuthenticationService, private idle: Idle, private keepalive: Keepalive, private httpService: HttpService) {
constructor(private appDataService:AppDataService, private cryptoService:CryptoService, private authenticationService: AuthenticationService, private idle: Idle, private keepalive: Keepalive, private httpService: HttpService) {
this.initIdleState();
(window as any).scope = this.appDataService;
}

@HostListener("window:beforeunload")
Expand Down

0 comments on commit 35fbd56

Please sign in to comment.