support angular > 1.2.18