using angular for consulta