angular switching done