Custom Dialog Renderer. How to get the view?

Hi All,
I’m trying to create a custom dialog renderer. Following many examples and even taking guidance from the aurelia dialog renderer I keep falling down in the same place.

dialogController.viewModel and dialogController.slot

They always seem to be undefined.
using latest aurelia-dialog.