1
- import { Component , OnInit } from '@angular/core' ;
1
+ import { Component , OnInit , inject } from '@angular/core' ;
2
2
import { ActivatedRoute , Router } from '@angular/router' ;
3
3
import { CommonModule } from '@angular/common' ;
4
4
import { HttpClient , HttpHeaders , HttpParams } from '@angular/common/http' ;
@@ -22,17 +22,17 @@ type LtiLaunchResponse = {
22
22
imports : [ TranslateDirective , CommonModule ] ,
23
23
} )
24
24
export class Lti13ExerciseLaunchComponent implements OnInit {
25
+ private route = inject ( ActivatedRoute ) ;
26
+ private http = inject ( HttpClient ) ;
27
+ private accountService = inject ( AccountService ) ;
28
+ private router = inject ( Router ) ;
29
+ private sessionStorageService = inject ( SessionStorageService ) ;
30
+ private ltiService = inject ( LtiService ) ;
31
+ private themeService = inject ( ThemeService ) ;
32
+
25
33
isLaunching : boolean ;
26
34
27
- constructor (
28
- private route : ActivatedRoute ,
29
- private http : HttpClient ,
30
- private accountService : AccountService ,
31
- private router : Router ,
32
- private sessionStorageService : SessionStorageService ,
33
- private ltiService : LtiService ,
34
- private themeService : ThemeService ,
35
- ) {
35
+ constructor ( ) {
36
36
this . isLaunching = true ;
37
37
}
38
38
0 commit comments