api and angular for resident view