Skip to content

Error: The selector (...) did not match any elements #5899

Closed
@Bartosz-D3V

Description

@Bartosz-D3V

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Example code snippet in the official Angular Material documentation should not throw any error.

What is the current behavior?

When running example Plunker code related to Modals, Angular throws an error:
'Error: The selector "dialog-result-example-dialog" did not match any elements'

What are the steps to reproduce?

Open this Plunker code:
https://plnkr.co/edit/F6O5ltdCJrVn3r2qw4DU?p=preview
And then open a console from debugging tools after the application will load.

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

Application throws an error, although the modal window is opening correctly.

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

Angular Material: 2.0.0-beta.8

Is there anything else we should know?

URL of the Plunker example comes from official Angular Material documentation for Modals:
https://material.angular.io/components/dialog/examples

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentdocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions