Use named function and $inject property