-
-
+
diff --git a/src/app/shared/components/code/code.component.ts b/src/app/shared/components/code/code.component.ts
index f88107a..8734bde 100644
--- a/src/app/shared/components/code/code.component.ts
+++ b/src/app/shared/components/code/code.component.ts
@@ -1,18 +1,18 @@
-import { Component, ElementRef, Input, OnChanges, ViewChild } from '@angular/core';
+import { Component, ElementRef, OnChanges, ViewChild, input } from '@angular/core';
import { CodeHighlightService } from 'src/app/core/services/code-highlight.service';
import { NgClass } from '@angular/common';
@Component({
- selector: 'app-code',
- templateUrl: './code.component.html',
- styleUrls: ['./code.component.scss'],
- standalone: true,
- imports: [NgClass],
+ selector: 'app-code',
+ templateUrl: './code.component.html',
+ styleUrls: ['./code.component.scss'],
+ standalone: true,
+ imports: [NgClass],
})
export class CodeComponent implements OnChanges {
- @Input() language = 'typescript';
- @Input() containerClass: string;
- @Input() snippet: string;
+ language = input('typescript');
+ containerClass = input();
+ snippet = input();
@ViewChild('code') codeTemplateRef: ElementRef;
diff --git a/src/app/shared/components/emoji-button/emoji-button.component.html b/src/app/shared/components/emoji-button/emoji-button.component.html
index a446c84..c2d4739 100644
--- a/src/app/shared/components/emoji-button/emoji-button.component.html
+++ b/src/app/shared/components/emoji-button/emoji-button.component.html
@@ -1,20 +1,20 @@
-
+
@if (btnId && showLink) {
- 🔗
+ >@if (btnId() && showLink()) {
+ 🔗
}