removed not used '{% if ... %} and added '{$ $}' for angular