Skip to content
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

docs(dialog): add new option and update example #1814

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

crisbeto
Copy link
Member

  • Mentions the disableClose option in the readme.
  • Updates the dialog readme and dialog demo not to use the viewContainerRef since it's not necessary anymore.

@crisbeto crisbeto added docs This issue is related to documentation pr: needs review labels Nov 10, 2016
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 10, 2016
@@ -12,8 +12,8 @@ MdDialog is a service, which opens dialogs components in the view.

| Key | Description |
| --- | --- |
| `viewContainerRef: ViewContainerRef` | The view container ref to attach the dialog to. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't remove this because it is still an option, but it is optional.


this.dialogRef = this.dialog.open(PizzaDialog, config);
this.dialogRef = this.dialog.open(PizzaDialog, {
role: 'alertdialog'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be alertdialog since that's not appropriate to the content being opened.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I was going for was to show that you can pass in an object, but I didn't want people copying the config over with something like disableClose: true. Having disableClose: false seemed redundant.

* Mentions the `disableClose` option in the readme.
* Updates the dialog readme and dialog demo not to use the `viewContainerRef` since it's not necessary anymore.
@crisbeto
Copy link
Member Author

Re-added the viewContainerRef and switched up the config options in the example.

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Nov 10, 2016
@jelbourn
Copy link
Member

LGTM

@jelbourn jelbourn merged commit 068fa85 into angular:master Nov 11, 2016
@michael-vasyliv
Copy link

some bug when dbclick around dialog
image
http://plnkr.co/edit/OrXLHggyhZu7Wijf7czf?p=preview

@crisbeto
Copy link
Member Author

There should be a fix for this one in master @vasyliv. I could reproduce this in the Plunkr, but not locally.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants