The provided controller for the dialog may now be either a string, a function or an array as is custom in AngularJs.
Improved inline controller example
Updated the documentation