I use webpack and typescript. Can I load an html file as a variable? Sort of:import myTemplate from './template.html';
import myTemplate from './template.html';
Use the raw-loader webpack loader, and if you import through import myTemplate from './template.html', it should work.
import myTemplate from './template.html'
Source: https://habr.com/ru/post/1667292/More articles:Built-in keyboard and Telegram keyboard - telegramMenu bar - mess in eclipse neon.3 on Ubuntu 16.10 - javaHow to create an array tree from logical notation (DSL) using PHP - phpKnockout Computed Observed does not update user interface - javascriptCombining two index-based data frames, replacing matching values in another column - pythonRecord a macro using VBA in Excel - excel-vbaFlex 4.6 Image Center - flexTruncate MongoDB Plugin to EBS Snapshot - mongodbFullCalendar error when using PrimeNG Schedule - angularРекомендация Zookeeper для кластерного Nifi - apache-nifiAll Articles