Angular - alert has no method log.