init angular code