How to display dashboard title on a custom header

As the uiExport type suggests, you will need a bit of a hack.

Assuming your header is using an angular directive, you should be able to watch $route.current.locals and get information like the current dashboard, or visualization.