Skip to content

Commit

Permalink
Migrate standard-competencies-admin-import to use inject()
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Nov 29, 2024
1 parent 85a85c1 commit 8d1bb46
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, inject } from '@angular/core';
import { faBan, faChevronRight, faFileImport, faQuestionCircle } from '@fortawesome/free-solid-svg-icons';
import {
KnowledgeAreaDTO,
Expand Down Expand Up @@ -84,12 +84,12 @@ export class AdminImportStandardizedCompetenciesComponent {
}
\`\`\``;

public constructor(
private alertService: AlertService,
private adminStandardizedCompetencyService: AdminStandardizedCompetencyService,
private activatedRoute: ActivatedRoute,
private router: Router,
) {}
private alertService = inject(AlertService);
private adminStandardizedCompetencyService = inject(AdminStandardizedCompetencyService);
private activatedRoute = inject(ActivatedRoute);
private router = inject(Router);

public constructor() {}

/**
* Verifies the file (only .json, smaller than 20 MB) and then tries to read the importData from it
Expand Down

0 comments on commit 8d1bb46

Please sign in to comment.