initial angular code working with token