update to support angular v1.2