This was harder for me to read the tags.
although this was the same as document.innerHTML in Javascript, it was still painful to read. are there any alternative solution of not storing the multi-line string html tags?
Off the top of my head you could try putting the string in a separate html file and lazy-loading it in.
Alternatively, you could move this back to web/index.html like it was in Part 1 and toggle its visibility 👎🏾. Perhaps even better you could try moving it to web/index.html in a <template> tag and have logic to extract and render the contents whenever you need. EDIT: There is a TemplateElement class to help with that.
Hope that helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This was harder for me to read the tags.
although this was the same as
document.innerHTML
in Javascript, it was still painful to read. are there any alternative solution of not storing the multi-line string html tags?Hey Vince,
Thanks for the feedback.
Off the top of my head you could try putting the string in a separate html file and lazy-loading it in.
Alternatively, you could move this back to
web/index.html
like it was in Part 1 and toggle its visibility 👎🏾. Perhaps even better you could try moving it toweb/index.html
in a<template>
tag and have logic to extract and render the contents whenever you need. EDIT: There is a TemplateElement class to help with that.Hope that helps.