File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
# sample-angular-material-dialog-overview
2
- A basic sample showing how to use the md-dialog
2
+ A basic sample showing an error received in the console when trying to show a basic md-dialog.
3
+
4
+ #### error
5
+ EXCEPTION: Cannot set property stack of [ object Object] which has only a getter
6
+
7
+ If I replace the line regarding zone in package.json to: "zone.js": "0.7.2", i instead get:
8
+
9
+ EXCEPTION: Error in :0:0 caused by: The selector "app-example-dialog" did not match any elements
10
+
11
+
12
+ #### steps to reproduce
13
+ 1 . ` ng new my-dialog-app ` - Create app
14
+ 2 . ` cd my-dialog-app ` - Go to app
15
+ 3 . ` ng generate component ExampleDialog ` - Create a component for the dialog content
16
+ 4 . Installed Material according to documentation:
17
+ - ` npm install --save @angular/material ` - Install Material
18
+ - Added to src/styles.css: ` @import '~@angular/material/core/theming/prebuilt/deeppurple-amber.css'; `
19
+ - Added MaterialModule to AppModule.
20
+ 5 . Changed app.component.html and app.component.ts following the [ Dialog Overview Sample] ( https://material.angular.io/components/component/dialog ) .
21
+ 6 . Added ExampleDialog to ngModule bootstrap, like so: ` bootstrap: [AppComponent, ExampleDialogComponent] ` .
22
+
23
+
24
+ #### versions
25
+ - Angular CLI: v1.0.0-beta.25.5
26
+ - Node JS: v6.9.4
27
+ - npm: 3.10.10
28
+ - OS: Windows 10.0.14393 (x64)
29
+ - Browser: Chrome 55.0.2883.87, Edge 38.14393.0.0
30
+ - @angular/material ": "^2.0.0-beta.1"
You can’t perform that action at this time.
0 commit comments