- If I add
<template><img src="url1" /></template>in any basic HTML page, the img resource aturl1is not downloaded, and according to Chrome DevTools a document-fragment containing the img element is created
- If I add
<template><img src="url2" /></template>to any Angular component template file, the img resource aturl2is downloaded, and the DOM contains a template element with an empty document-fragment and a img element as siblings
How can I add the <template ... snippet to a Angular template as in 2), but have the same result as in 1)?
ngNonBindable on the <template> element or the <img> element seems to have no effect.
I am using Angular 10.
I need to do this because I am using a 3rd party library which needs to be configured using a <template> element with specific token as img src value which will be replaced internally.

