Passing the controller to a modal

When creating a modal window, I see we can pass an options object that defines the scope. It would be handy to accept a controller property as well for the situation of wanting a specific controller to control the modal.

Also a little note: codepen example on how to use modal windows have dissapeared