You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You makes it really simple to open simple dialogs. I suggest a few additions:
You have created a service with alert/prompt/confirm methods. If I need to open custom-component dialog I would need to inject MdDialog service to open it. So it often ends up with injecting two similar services. It would be great to have simple open method from MdDialog in TdDialogService to avoid double injection.
Add simple alternatives to alert/prompt/confirm that way: prompt(string): Observable<string>;
It would allow even simpler way to use dialogs!
PS: I can make a PR for this if you like the ideas!
The text was updated successfully, but these errors were encountered:
I agree, it would be simple to create wrapper methods to the MdDialog methods inside TdDialogService so we dont have to inject both. e.g. tdDialogService.open(CustomDialog, config) or something like that
…Dialog. closes(#170 and #171) (#190)
* added a11y to prompt dialog for enter keypress and left/right arrows when buttons are focused
* added a11y to confirm dialog for left/right arrows when buttons are focused
* prevent enter event propagation outside of dialog
* proxy the open and closeAll methods in the tdDialogService
* added open and closeAll usage in the docs
You makes it really simple to open simple dialogs. I suggest a few additions:
You have created a service with alert/prompt/confirm methods. If I need to open custom-component dialog I would need to inject MdDialog service to open it. So it often ends up with injecting two similar services. It would be great to have simple open method from MdDialog in TdDialogService to avoid double injection.
Add simple alternatives to alert/prompt/confirm that way:
prompt(string): Observable<string>;
It would allow even simpler way to use dialogs!
PS: I can make a PR for this if you like the ideas!
The text was updated successfully, but these errors were encountered: