Lade Inhalt...
diff --git a/src/app/components/ui/loading/loading.component.ts b/src/app/components/ui/loading/loading.component.ts
index 5794889..944bcd5 100644
--- a/src/app/components/ui/loading/loading.component.ts
+++ b/src/app/components/ui/loading/loading.component.ts
@@ -1,4 +1,4 @@
-import { Component, Input } from '@angular/core';
+import { Component, input } from '@angular/core';
import { MatProgressBarModule } from '@angular/material/progress-bar';
@Component({
@@ -8,5 +8,5 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
templateUrl: './loading.component.html',
})
export class LoadingComponent {
- @Input() loading = true;
+ loading = input(true);
}
diff --git a/src/app/components/ui/markdown/markdown.component.html b/src/app/components/ui/markdown/markdown.component.html
index ab4bf55..22f24ad 100644
--- a/src/app/components/ui/markdown/markdown.component.html
+++ b/src/app/components/ui/markdown/markdown.component.html
@@ -1 +1 @@
-
+
diff --git a/src/app/components/ui/markdown/markdown.component.ts b/src/app/components/ui/markdown/markdown.component.ts
index 234474e..6ea908b 100644
--- a/src/app/components/ui/markdown/markdown.component.ts
+++ b/src/app/components/ui/markdown/markdown.component.ts
@@ -1,4 +1,4 @@
-import { Component, Input, inject } from '@angular/core';
+import { Component, inject, input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Router } from '@angular/router';
import { MarkedPipe } from '../../../pipes/marked.pipe';
@@ -12,7 +12,7 @@ import { MarkedPipe } from '../../../pipes/marked.pipe';
})
export class MarkdownComponent {
private _router = inject(Router);
- @Input({ required: true }) content!: string;
+ content = input.required
-
+
+
diff --git a/src/app/components/ui/progress-spinner/progress-spinner.component.ts b/src/app/components/ui/progress-spinner/progress-spinner.component.ts
index f0621ac..80491d5 100644
--- a/src/app/components/ui/progress-spinner/progress-spinner.component.ts
+++ b/src/app/components/ui/progress-spinner/progress-spinner.component.ts
@@ -1,18 +1,18 @@
import { CommonModule } from '@angular/common';
-import { Component, Input } from '@angular/core';
+import { Component, input } from '@angular/core';
import { MatIconModule } from '@angular/material/icon';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
@Component({
- selector: 'app-progress-spinner',
- standalone: true,
- imports: [CommonModule, MatIconModule, MatProgressSpinnerModule],
- templateUrl: './progress-spinner.component.html',
- styleUrl: './progress-spinner.component.scss'
+ selector: 'app-progress-spinner',
+ standalone: true,
+ imports: [CommonModule, MatIconModule, MatProgressSpinnerModule],
+ templateUrl: './progress-spinner.component.html',
+ styleUrl: './progress-spinner.component.scss',
})
export class ProgressSpinnerComponent {
- @Input() color = 'primary';
- @Input() size = 40;
- @Input() value = 0;
- @Input() disabled = false;
+ color = input('primary');
+ size = input(40);
+ value = input(0);
+ disabled = input(false);
}