Better use of angular for templating