On Angular 7 I have the models:
export interface ProductModel {      
  files: FileModel[];
  name: string;     
}
export interface FileModel { 
  type: string;
  url: string;
}
On the template given a Product I need to display the url of the first file which type is "image":
{{ product.files.find(x => x.type == 'image').url }} 
But I get the error:
Bindings cannot contain assignments
How to do this?
Note
I am not sure product.files.find(x => x.type == 'image') returns any item.