I would like to know if it is possible (I am using ES6 and Typescript) to separate my HTML code from my components i.e. include the HTML code into a variable from another file.
Currently we are writing all HTML within a structure like this:
let html = `<h1>Hello</h1> world!`
Which is obviously not cool when you have a lot of HTML.
Is there a way to separate my HTML from my Javascript component so I could do for example:
let html = include('index.html');