From 41aa1f845b0a9bfb2630c73cc5f9ad0852b91c64 Mon Sep 17 00:00:00 2001 From: raphaelklein Date: Fri, 29 Nov 2024 17:15:56 +0100 Subject: [PATCH] Inject migration --- .../app/lti/lti13-select-content.component.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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.