Angular - Avoid function calls in templates

It is not a good practice to write function calls for computing values inside the templates....