migrate display-html

This commit is contained in:
2025-12-06 11:41:31 +01:00
parent 4c63b5927d
commit 00a33b4cd2
4 changed files with 9 additions and 21 deletions

View File

@@ -1,4 +0,0 @@
<div>
<p innerHtml="{{ html }}"></p>
<button (click)="updateHtml()">Update Html</button>
</div>

View File

@@ -1,15 +0,0 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-display-html',
imports: [],
templateUrl: './display-html.component.html',
styleUrl: './display-html.component.css'
})
export class DisplayHtmlComponent {
html: string = '';
updateHtml() {
this.html = "<i>neuer text ???</i>";
}
}

View File

@@ -1 +1,4 @@
<p>display-html works!</p>
<div>
<p innerHtml="{{ html }}"></p>
<button (click)="updateHtml()">Update Html</button>
</div>

View File

@@ -6,6 +6,10 @@ import { Component } from '@angular/core';
templateUrl: './display-html.html',
styleUrl: './display-html.css',
})
export class DisplayHtml {
export class DisplayHtmlComponent {
html: string = '';
updateHtml() {
this.html = "<i>neuer text ???</i>";
}
}