angular service snippet updated