found the correct solution for keeping state and props in sync after call from angular