I got an error on scrutinizer because it can not "resolve" $event. With this comment auto completion works too.