-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc(dialog): document MdDialog #1569
Conversation
| Key | Description | | ||
| --- | --- | | ||
| `viewContainerRef: ViewContainerRef` | The view container ref to attach the dialog to. | | ||
| `role: DialogRole = 'dialog'` | The ARIA role of the dialog element. Possible values are `dialog` and `alertdialog`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also mention "Defaults to 'dialog'"
} | ||
|
||
@Component({ | ||
selector: 'my-dialog', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to use example components names that are super obviously examples (which is why there are so many PizzaComponent
s in the source). This avoid the problem of people seeing this selector and thinking it's a magic identifier that you must use.
Can you change MyDialog
and MyComponent
to be something else?
LGTM, thanks! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Heavily based on the snack-bar doc. Comments are welcome.
Refs #1566