make angular inject safe