Add docs for getting a component's controller.

Fixes #1781