/

Editor

Code block

#
Hello world
Tell me please, why?
class Greeter {
  greeting: string;

  constructor(message: string) {
    this.greeting = message;
  }

  greet() {
    return "Hello, " + this.greeting;
  }
}

let greeter = new Greeter("world");
https://github.com/taiga-family/taiga-ui

HTML:

Hello world
Tell me please, why?
class Greeter {
  greeting: string;

  constructor(message: string) {
    this.greeting = message;
  }

  greet() {
    return "Hello, " + this.greeting;
  }
}

let greeter = new Greeter("world");
https://github.com/taiga-family/taiga-ui

Text:

<pre><code>Hello world</code></pre> <code>Tell me please, why?</code> <pre><code class="language-ts">class Greeter { greeting: string; constructor(message: string) { this.greeting = message; } greet() { return "Hello, " + this.greeting; } } let greeter = new Greeter("world"); </code></pre> <pre><code>https://github.com/taiga-family/taiga-ui</code></pre> <p></p>