I want to import my templates into my js with es6 template string loader. The only difference in my case is that I don\'t want to include css, only html. My code is as follo
The solution posted here is correct. Just adding an info to the error i faced when implementing the solution mentioned.
I got the error: TS2307: Cannot find module './index3.html'
This was because of typescript compilation error.
The work around was here
Had to define a file: html.d.ts containing the below
declare module '*.html' {
const value: string;
export default value
}