md-dialog
Depends on #113
For alpha.6:
- [ ] Design doc
- [ ] Basic initial implementation
This is the component that I'm needing more. :) :+1:
I also need this. Waiting for this. :+1:
We all wait this. @jelbourn, can you merge this early? I planned my project to use this in alpha.6, but it delayed too much. Thank you for all your jobs.
Any estimates on that?
Is there a design doc somewhere @jelbourn ? Looking at the way the public API looks at the moment(https://github.com/angular/material2/blob/master/src/demo-app/dialog/dialog-demo.ts) I'm afraid it's not gonna be too reactive approach friendly(particularly controlling the dialog state with something like @ngrx/store).
Hi @jelbourn!
The basic dialog is working already. However, it is not published in npm. May you publish it?
It's missing some pieces @andvasp, like backdrop. It still more of a prototype than anything that could be released.
The dialog works, but it appears that there is no way to pass data to the component inside, am I wrong? Like when you call it like this:
this.dialog.open(StandardDialog, config)
Oh nevermind. For future readers, it's possible to edit the instance of the StandardDialog (custom) class by editing dialogRef like this:
this.dialog.open(StandardDialog, config)
.then(res => {
this.dialogRef = res;
this.dialogRef.componentInstance.title = title;
this.dialogRef.componentInstance.contents = contents;
});
Any news about releasing this? The depending issue is closed (to be splitted further though).
Adding my +1. This is a big one. Anxiously and excitedly waiting for it. Hope we get an official release soon.
Remaining work before initial release:
- Backdrop (#1041)
- Focus trapping
With #1041 being LGTM would it be possible to get this out on the next release? I know focus trapping is important to ARIA and accessibility but so much is built on md-dialog that it's one big thing keeping us using ng2 or other hacks.. We can just use the PR but I was hoping that we could at least get it on the NPM...
IT would be great if we can have this in the next release
@jelbourn Is the intention to allow MdDialog to work with overlay position strategies other than global? I noticed that you're capturing the ViewContainerRef but it seems it currently only being used for maintaining the injector hierarchy, rather than positioning. Would be great if we could place the dialog within a specific container, so that the overlay doesn't have to be global all the time.
#113 is closed & #1041 is merged. Both for a while now, what are the news on this?
i tried MdDialog with rc5 . It gave error
EXCEPTION: Error: Uncaught (in promise): No provider for Token overlayContainer! browser_adapter.ts:82
import {Component} from '@angular/core'; import {MdDialog} from '@angular2-material/dialog/dialog'; import {Overlay} from '@angular2-material/core/overlay/overlay'; @Component({ moduleId:__moduleName, selector: 'iPopup', templateUrl: 'iPopup.html', styleUrls: ['iPopup.css'], directives: [MdDialog], providers:[Overlay]
})
Is there a close method on the current released alpha.9-3?
As I see here:
https://github.com/angular/material2/blob/master/src/lib/dialog/dialog.ts
There's no close method but on the other hand things that are in comments marked as todo (like close on esc etc) works.
Close is on the MdDialogRef that you get back from opening it.