export declare function mdModalBackdrop($animate: any, $injector: any, $modalStack: any): { replace: boolean; template: string; compile: (tElement: any, tAttrs: any) => (scope: any, element: any, attrs: any) => void; }; export declare namespace mdModalBackdrop { var $inject: string[]; } export declare function mdModalWindow($modalStack: any, $q: any, $animate: any, $animateCss: any, $document: any): { scope: { index: string; }; replace: boolean; transclude: boolean; template: (tElement: any, tAttrs: any) => any; link: (scope: any, element: any, attrs: any) => void; }; export declare namespace mdModalWindow { var $inject: string[]; } export declare function mdModalAnimationClass(): { compile: (tElement: any, tAttrs: any) => void; }; export declare function mdModalTransclude(): { link: (scope: any, element: any, attrs: any, controller: any, transclude: any) => void; }; export declare function mdModalStack($animate: any, $animateCss: any, $compile: any, $document: any, $rootScope: any, $q: any, $$multiMap: any, $$stackedMap: any): { NOW_CLOSING_EVENT: string; open: (modalInstance: any, modal: any) => void; close: (modalInstance: any, result: any) => boolean; dismiss: (modalInstance: any, reason: any) => boolean; dismissAll: (reason: any) => void; getTop: () => any; modalRendered: (modalInstance: any) => void; focusFirstFocusableElement: () => boolean; focusLastFocusableElement: () => boolean; isModalFocused: (evt: any) => boolean; isFocusInFirstItem: (evt: any) => boolean; isFocusInLastItem: (evt: any) => boolean; clearFocusListCache: () => void; loadFocusElementList: () => void; }; export declare namespace mdModalStack { var $inject: string[]; } export declare function mdModal(): { options: { animation: boolean; backdrop: string; keyboard: boolean; }; $get: (string | (($rootScope: any, $q: any, $document: any, $templateRequest: any, $controller: any, $mdResolve: any, $modalStack: any) => { getPromiseChain: () => any; open: (modalOptions: any) => { result: any; opened: any; closed: any; rendered: any; close: (result: any) => any; dismiss: (reason: any) => any; }; }))[]; }; /** * @name Modal * @description
$modal is a service to quickly create AngularJS-powered modal windows.Creating custom modals is straightforward: create a partial view, its controller and reference them when using the service.
The $modal service has only one method: open(options) where available options are like follows:
templateUrl - a path to a template representing modal's contenttemplate - inline template representing the modal's contentscope - a scope instance to be used for the modal's content (actually the $modal service is going to create a child scope of a provided scope). Defaults to $rootScopecontroller - a controller for a modal instance - it can initialize scope used by modal. Accepts the "controller-as" syntax, and can be injected with $modalInstanceresolve - members that will be resolved and passed to the controller as locals;it is equivalent of the resolve property for AngularJS routesbackdrop - controls presence of a backdrop. Allowed values: true (default), false (no backdrop), 'static' - backdrop is present but modal window is not closed when clicking outside of the modal window.keyboard - indicates whether the dialog should be closable by hitting the ESC key, defaults to truemodalId - ID to be added to a modal window templatemodalClass - additional CSS class(es) to be added to a modal window templatewindowTemplateUrl - a path to a template overriding modal's window templatetype - optional type of modal . Allowed values: 'md-modal--large' (large) or 'small' (smaller) or 'dialog' (dialog modal).The open method returns a modal instance, an object with the following properties:
close(result) - a method that can be used to close a modal, passing a resultdismiss(reason) - a method that can be used to dismiss a modal, passing a reasonresult - a promise that is resolved when a modal is closed and rejected when a modal is dismissedopened - a promise that is resolved when a modal gets opened after downloading content's template and resolving all variablesIn addition the scope associated with modal's content is augmented with 2 methods:
$close(result)$dismiss(reason)Those methods make it easy to close a modal window without a need to create a dedicated controller
* @category container * @component modal * @section default */