Skip to content

Commit

Permalink
Inject migration
Browse files Browse the repository at this point in the history
  • Loading branch information
raffifasaro committed Nov 29, 2024
1 parent 85274d3 commit 41aa1f8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main/webapp/app/lti/lti13-select-content.component.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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;
Expand All @@ -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.
Expand Down

0 comments on commit 41aa1f8

Please sign in to comment.