diff --git a/src/main/webapp/app/lti/lti13-select-content.component.ts b/src/main/webapp/app/lti/lti13-select-content.component.ts index 0ff8095f9dcf..639115f41308 100644 --- a/src/main/webapp/app/lti/lti13-select-content.component.ts +++ b/src/main/webapp/app/lti/lti13-select-content.component.ts @@ -1,4 +1,4 @@ -import { Component, ElementRef, NgZone, OnInit, SecurityContext, ViewChild } from '@angular/core'; +import { Component, ElementRef, NgZone, OnInit, SecurityContext, ViewChild, inject } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { DomSanitizer } from '@angular/platform-browser'; @@ -9,12 +9,15 @@ import { DomSanitizer } from '@angular/platform-browser'; * According to LTI documentation auto submit form must be used. */ -// push branch @Component({ selector: 'jhi-select-exercise', templateUrl: './lti13-select-content.component.html', }) export class Lti13SelectContentComponent implements OnInit { + private route = inject(ActivatedRoute); + private sanitizer = inject(DomSanitizer); + private zone = inject(NgZone); + jwt: string; id: string; actionLink: string; @@ -23,12 +26,6 @@ export class Lti13SelectContentComponent implements OnInit { @ViewChild('deepLinkingForm', { static: false }) deepLinkingForm?: ElementRef; - constructor( - private route: ActivatedRoute, - private sanitizer: DomSanitizer, - private zone: NgZone, - ) {} - /** * Initializes the component. * - Retrieves query parameters from the route snapshot.