From 7c93f5020c4f761f462366155195283d5309149e Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 17 Apr 2020 17:53:02 +0200 Subject: [PATCH] fix(form-field): add missing material common module We seem to miss the `MatCommonModule` in the form-field. This came up when doing size comparison between the MDC-based form-field. --- src/material/form-field/form-field-module.ts | 5 ++++- tools/public_api_guard/material/form-field.d.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/material/form-field/form-field-module.ts b/src/material/form-field/form-field-module.ts index f24eaa11eee6..31c36862b642 100644 --- a/src/material/form-field/form-field-module.ts +++ b/src/material/form-field/form-field-module.ts @@ -6,9 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ +import {ObserversModule} from '@angular/cdk/observers'; import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {ObserversModule} from '@angular/cdk/observers'; +import {MatCommonModule} from '@angular/material/core'; import {MatError} from './error'; import {MatFormField} from './form-field'; import {MatHint} from './hint'; @@ -29,9 +30,11 @@ import {MatSuffix} from './suffix'; ], imports: [ CommonModule, + MatCommonModule, ObserversModule, ], exports: [ + MatCommonModule, MatError, MatFormField, MatHint, diff --git a/tools/public_api_guard/material/form-field.d.ts b/tools/public_api_guard/material/form-field.d.ts index a182e4e3e0da..fd0f9242faca 100644 --- a/tools/public_api_guard/material/form-field.d.ts +++ b/tools/public_api_guard/material/form-field.d.ts @@ -103,7 +103,7 @@ export interface MatFormFieldDefaultOptions { export declare class MatFormFieldModule { static ɵinj: i0.ɵɵInjectorDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDefWithMeta; } export declare class MatHint {