Can you incorporate environment variables into template files successfully?
Currently, I am experimenting with the following syntax:
<img class="preview-image" src="{{environment.assets + item.image}}" />
However, this approach leads to the following error:
Error: Identifier 'environment' is not defined. The component declaration, template variable declarations, and element references do not include such a member.
Even after attempting to import it in my component.ts file using
import { environment } from './../../../../environments/environment';
, the issue still persists.