templates and angular working