Go to the form as a template. So, if you created such a directive
angular.module('myApp') .directive('myAwesomeFormDirective', [function() { return { templateUrl: 'some/path/some.html', controller: "SomeFormController" }; }])
Your mdPanel configuration option will look something like the following. You can configure other parameters in any case, but the "template" must be set in the directive of the corresponding element.
var config = { attachTo: angular.element(document.body), disableParentScroll: this.disableParentScroll, template: '<my-awesome-form-directive></my-awesome-form-directive>', hasBackdrop: true, panelClass: 'demo-dialog-example', position: position, trapFocus: true, zIndex: 150, clickOutsideToClose: true, escapeToClose: true, focusOnOpen: true };
jdc91 source share