Questions tagged [mddialog]

$mdDialog is a directive of AngularJS that opens a dialog over the app to inform users about critical information or require them to make decisions. There are two approaches for setup: a simple promise API and regular object syntax.

Docs

https://material.angularjs.org/latest/api/service/$mdDialog

Demo

https://material.angularjs.org/latest/demo/dialog

Syntax

$mdDialog.show({} /* options */);
167 questions
3
votes
2 answers

Using Angular Material, is it possible to close a specific dialog

I have an AngularJS app using the Angular Material UI framework. The app has different mechanisms showing dialogs (e.g error and loading spinner) and it would be preferable to only close one specifically chosen in certain scenarios, e.g. when an…
Flygenring
  • 3,818
  • 1
  • 32
  • 39
3
votes
1 answer

mdDialog block interface after closed

i've tried to use mdDialog in my project. So far, it works perfectly, except when i close it (or hide), my UI becomes completly blocked. I cant click any buttons, links, elements unless i reload page. Here is the example code for the dialog…
Ivan Zhivolupov
  • 1,107
  • 2
  • 20
  • 39
2
votes
1 answer

How get a result for sole cell without repeat from angular material dialog window?

I have some workig code which allows pass data from dialog window in the table. For one row it work well. But if I want to add some rows in table I get result for several columns at once. How can I get a result for a sole cell without repeat if I…
alexeyll
  • 25
  • 7
2
votes
1 answer

ServiceNow: accessing widget option schema in mdDialog

I've cloned the OOTB widget-form, named it widget-form-md, and created an additional option schema for hideRelatedLists: I have a separate widget that is embedding my cloned widget-form-md and hope to display it via a Material Design modal. My…
Dave
  • 1,257
  • 2
  • 27
  • 58
2
votes
0 answers

Angular 2: When multiple dialogs are opened at once is there a way to bring one of the dialogs in the back to the front?

I have a issue where a dialog is opened right after another one but want the user to interact with the dialog that was opened first. Is there a way to bring that first dialog to the front?
Jaxon2321
  • 21
  • 1
2
votes
2 answers

how to disable background while using md dialog?

I am using angular material md dialog box on problem I am facing is backdrop is scrolling along with page. For that issue i have found a solution somewhere to keep md-backdrop position to fixed. It worked but another issue is background content…
Aravind Reddy
  • 747
  • 6
  • 20
2
votes
2 answers

Angular : Getting "No component factory" error while opening a Material Dialog in lazy loaded Component

Im getting the following error when i try to open Material Dialog in ConfirmBoxComponent. No component factory found for ConfirmBoxComponent. Did you add it to @NgModule.entryComponents? I have already added ConfirmBoxComponent in entryComponents…
DAN
  • 3,140
  • 5
  • 20
  • 22
2
votes
2 answers

MdDialogRef.close doesn't close the dialog when called from a callback fn

I followed official https://material.angular.io/components/dialog/overview where it states that if the dialog component itself has to be closed, we need to inject MdDialogRef reference as below and then close on an event export class…
nsk
  • 1,413
  • 5
  • 24
  • 34
2
votes
0 answers

$mdDialog [$rootScope:inprog] $digest already in progress

When calling a $mdDialog and then calling one more $mdDialog right after the first one - then this error appears 3 times in a row. No I do not use $scope.apply() or $scope.$digest() anywhere in my code. $scope.$$phase is null at the time of the…
torbenrudgaard
  • 2,375
  • 7
  • 32
  • 53
2
votes
0 answers

VoiceOver not reading content in dialog

For my Angular2 web app, when I launch a MdDialog, the VoiceOver screen reader for iPhone doesn't focus on the dialog and read the title. Instead it continues reading the content behind the dialog. The screen focuses on the dialog close button…
ichan
  • 41
  • 3
2
votes
2 answers

Unable to set position of Angular Material 2 dialog using MdDialogConfig

Any idea how to set the position of an MdDialog? openDialog() { let config = new MdDialogConfig(); config.height = '15px'; config.position.left = '5px'; let dialogRef = this.dialog.open(BasicAlertDialog, config); dialogRef.componentInstance.title…
Hyerman
  • 31
  • 2
2
votes
0 answers

ng-click does not fire the second time with mdDialog

I'm new to angular JS. I'm trying to create a simple mdDialog which contains a form for signing up. I works the first time but the ng-click does not respond the second time. I don't get any errors in console. It works on page reload again. HTML
nash63
  • 59
  • 1
  • 12
2
votes
1 answer

Testing component with MdDialogRef injected is calling service

I'm having a problem with testing a component having MdDialogRef and a service injected. I'd like to test that this component is calling the injected service. The problem is that I can't retrieve the service with the usual fixture =…
seawave_23
  • 1,169
  • 2
  • 12
  • 23
2
votes
3 answers

angular multiple $mdDialog

I work with modal tabs and I have notification pop-up window which is always shown to user when he logs into my application. It contains all events which happends when user was offline. Problem is when i click on any objects from list it close my…
Martin
  • 455
  • 1
  • 11
  • 34
2
votes
1 answer

How can I maintain the state of dialog box with progress all over my Angular 2 application?

I would like to keep the state of the Md Dialog alive even I close the dialog.So that I can keep the upload status active all over the application. My plan is to store the upload response in the service to maintain the upload progress and an icon…
Amal Shehu
  • 119
  • 2
  • 14
1 2
3
11 12