Updated angular code.