We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6b52d commit be4f4f9Copy full SHA for be4f4f9
amd/greeter.ts
@@ -7,15 +7,15 @@ export class Greeter
7
constructor (element: HTMLElement)
8
{
9
this.element = element;
10
- this.element.innerText += "The time is: ";
+ this.element.innerHTML += "The time is: ";
11
this.span = document.createElement('span');
12
this.element.appendChild(this.span);
13
- this.span.innerText = new Date().toUTCString();
+ this.span.innerHTML = new Date().toUTCString();
14
}
15
16
start()
17
18
- this.timerToken = setInterval(() => this.span.innerText = new Date().toUTCString(), 500);
+ this.timerToken = setInterval(() => this.span.innerHTML = new Date().toUTCString(), 500);
19
20
21
stop()
0 commit comments