Nice! I had no idea why it was failing. Not sure I'd call auto returning a bad habit. In many cases it makes my code shorter and easier to read, especially with angular where I'm always returning functions or objects to the framework.
I put the onus on Angular for a clearer error message. I thought it was detecting the access of a dom node, since that's what the documentation said, not the return type of a function.