angular provider snippet updated