components icon indicating copy to clipboard operation
components copied to clipboard

not possible to create a directive for md-dialog-container

Open mxii opened this issue 9 years ago • 4 comments

Bug, feature request, or proposal:

It's not possible to create a directive with a md-dialog-container selector.

What is the expected behavior?

Directive should be created..

What is the current behavior?

Directive will not be created..

What are the steps to reproduce?

  • create a directive with this selector: md-dialog-container
  • open a dialog
  • directive constructor isn't fired..

http://plnkr.co/edit/osdEyn9fx2LXNKEURIPT?p=preview

on clicking the button (dialog opens) there should be the console.output.. ?!

What is the use-case or motivation for changing an existing behavior?

Idea was to create a directive for md-dialogs cause of current dialogs cannot be moved.

Which versions of Angular, Material, OS, browsers are affected?

material beta.3 angular 4.1.0

Is there anything else we should know?

No, thanks!

mxii avatar Apr 18 '17 11:04 mxii

@jelbourn Is md-dialog-container intended to be used externally?

kara avatar Apr 18 '17 23:04 kara

It is not- MdDialogContainer is an internal implementation detail of MdDialog.

jelbourn avatar Apr 18 '17 23:04 jelbourn

@jelbourn @kara what would be the right way of doing it then?

Creating a directive to get that dialogs "movable".. ?! :) Could you point me into a possible direction..

Thanks anyway for your awesome work!

mxii avatar Apr 19 '17 06:04 mxii

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.