docs(guide/directive): use `hideDialog` handler in example

The handler is in the controller but was not being used in the template.

Closes #5020