File tree 1 file changed +7
-1
lines changed
material.angular.io/src/assets/stack-blitz/src
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ import {BrowserModule} from '@angular/platform-browser';
8
8
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
9
9
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
10
10
import { DemoMaterialModule } from './app/material-module' ;
11
+ import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field' ;
11
12
12
13
import { MaterialDocsExample } from './app/material-docs-example' ;
13
14
15
+ // Default MatFormField appearance to 'fill' as that is the new recommended approach and the
16
+ // `legacy` and `standard` appearances are scheduled for deprecation in version 10.
17
+ // This makes the examples that use MatFormField render the same in StackBlitz as on the docs site.
14
18
@NgModule ( {
15
19
imports : [
16
20
BrowserModule ,
@@ -24,7 +28,9 @@ import {MaterialDocsExample} from './app/material-docs-example';
24
28
entryComponents : [ MaterialDocsExample ] ,
25
29
declarations : [ MaterialDocsExample ] ,
26
30
bootstrap : [ MaterialDocsExample ] ,
27
- providers : [ ]
31
+ providers : [
32
+ { provide : MAT_FORM_FIELD_DEFAULT_OPTIONS , useValue : { appearance : 'fill' } } ,
33
+ ]
28
34
} )
29
35
export class AppModule { }
30
36
You can’t perform that action at this time.
0 commit comments