adding html in typescript 1

adding html in typescript

this.htmlToAdd = '
two
';

Here is what the above code is Doing:
1. We’re creating a new instance of the class.
2. We’re setting the htmlToAdd property to a string of HTML.
3. We’re calling the addHtml() method.
4. We’re calling the getHtml() method.
5. We’re calling the getHtml() method again.

Similar Posts