Is it possible to use env variables in template files?
I'm currently trying this syntax:
<img class="preview-image" src="{{environment.assets + item.image}}" />
which results in the following error:
Identifier 'environment' is not defined. The component declaration, template variable declarations, and element references do not contain such a member
I have tried importing it in my component.ts file, import { environment } from './../../../../environments/environment'; but it didn't change anything.