migrate display-html
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
<div>
|
|
||||||
<p innerHtml="{{ html }}"></p>
|
|
||||||
<button (click)="updateHtml()">Update Html</button>
|
|
||||||
</div>
|
|
||||||
@@ -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>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1 +1,4 @@
|
|||||||
<p>display-html works!</p>
|
<div>
|
||||||
|
<p innerHtml="{{ html }}"></p>
|
||||||
|
<button (click)="updateHtml()">Update Html</button>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ import { Component } from '@angular/core';
|
|||||||
templateUrl: './display-html.html',
|
templateUrl: './display-html.html',
|
||||||
styleUrl: './display-html.css',
|
styleUrl: './display-html.css',
|
||||||
})
|
})
|
||||||
export class DisplayHtml {
|
export class DisplayHtmlComponent {
|
||||||
|
html: string = '';
|
||||||
|
|
||||||
|
updateHtml() {
|
||||||
|
this.html = "<i>neuer text ???</i>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user