Skip to content

Commit 8830486

Browse files
crisbetojelbourn
authored andcommitted
chore: bump to 6.0.0-beta.6 and remove explicit preserveWhitespaces setting (#10216)
* Bumps the Angular version to at least 6.0.0-beta.6. * Removes all of the `preserveWhitespaces` declarations, because the option is now `false` by default. * Removes the tslint requirement for `preserveWhitespaces`.
1 parent d01c58c commit 8830486

File tree

79 files changed

+187
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+187
-225
lines changed

package-lock.json

Lines changed: 175 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"node": ">= 5.4.1"
2727
},
2828
"dependencies": {
29-
"@angular/animations": ">=6.0.0-beta.0 <7.0.0",
30-
"@angular/common": ">=6.0.0-beta.0 <7.0.0",
31-
"@angular/compiler": ">=6.0.0-beta.0 <7.0.0",
32-
"@angular/core": ">=6.0.0-beta.0 <7.0.0",
33-
"@angular/forms": ">=6.0.0-beta.0 <7.0.0",
34-
"@angular/platform-browser": ">=6.0.0-beta.0 <7.0.0",
29+
"@angular/animations": ">=6.0.0-beta.6 <7.0.0",
30+
"@angular/common": ">=6.0.0-beta.6 <7.0.0",
31+
"@angular/compiler": ">=6.0.0-beta.6 <7.0.0",
32+
"@angular/core": ">=6.0.0-beta.6 <7.0.0",
33+
"@angular/forms": ">=6.0.0-beta.6 <7.0.0",
34+
"@angular/platform-browser": ">=6.0.0-beta.6 <7.0.0",
3535
"core-js": "^2.4.1",
3636
"rxjs": "^5.5.5",
3737
"systemjs": "0.19.43",
@@ -40,12 +40,12 @@
4040
"zone.js": "^0.8.12"
4141
},
4242
"devDependencies": {
43-
"@angular/bazel": ">=6.0.0-beta.0 <7.0.0",
44-
"@angular/compiler-cli": ">=6.0.0-beta.0 <7.0.0",
45-
"@angular/http": ">=6.0.0-beta.0 <7.0.0",
46-
"@angular/platform-browser-dynamic": ">=6.0.0-beta.0 <7.0.0",
47-
"@angular/platform-server": ">=6.0.0-beta.0 <7.0.0",
48-
"@angular/router": ">=6.0.0-beta.0 <7.0.0",
43+
"@angular/bazel": ">=6.0.0-beta.6 <7.0.0",
44+
"@angular/compiler-cli": ">=6.0.0-beta.6 <7.0.0",
45+
"@angular/http": ">=6.0.0-beta.6 <7.0.0",
46+
"@angular/platform-browser-dynamic": ">=6.0.0-beta.6 <7.0.0",
47+
"@angular/platform-server": ">=6.0.0-beta.6 <7.0.0",
48+
"@angular/router": ">=6.0.0-beta.6 <7.0.0",
4949
"@angular/upgrade": "^5.0.1",
5050
"@bazel/ibazel": "0.3.1",
5151
"@google-cloud/storage": "^1.1.1",

src/cdk-experimental/dialog/dialog-container.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export function throwDialogContentAlreadyAttachedError() {
4747
templateUrl: './dialog-container.html',
4848
styleUrls: ['dialog-container.css'],
4949
encapsulation: ViewEncapsulation.None,
50-
preserveWhitespaces: false,
5150
// Using OnPush for dialogs caused some G3 sync issues. Disabled until we can track them down.
5251
// tslint:disable-next-line:validate-decorators
5352
changeDetection: ChangeDetectionStrategy.Default,

src/cdk/stepper/stepper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export class StepperSelectionEvent {
7373
exportAs: 'cdkStep',
7474
templateUrl: 'step.html',
7575
encapsulation: ViewEncapsulation.None,
76-
preserveWhitespaces: false,
7776
changeDetection: ChangeDetectionStrategy.OnPush,
7877
})
7978
export class CdkStep implements OnChanges {

src/cdk/table/row.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export class CdkCellOutlet {
159159
},
160160
changeDetection: ChangeDetectionStrategy.OnPush,
161161
encapsulation: ViewEncapsulation.None,
162-
preserveWhitespaces: false,
163162
})
164163
export class CdkHeaderRow { }
165164

@@ -174,6 +173,5 @@ export class CdkHeaderRow { }
174173
},
175174
changeDetection: ChangeDetectionStrategy.OnPush,
176175
encapsulation: ViewEncapsulation.None,
177-
preserveWhitespaces: false,
178176
})
179177
export class CdkRow { }

src/cdk/table/table.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ abstract class RowViewRef<T> extends EmbeddedViewRef<CdkCellOutletRowContext<T>>
9494
'class': 'cdk-table',
9595
},
9696
encapsulation: ViewEncapsulation.None,
97-
preserveWhitespaces: false,
9897
changeDetection: ChangeDetectionStrategy.OnPush,
9998
})
10099
export class CdkTable<T> implements CollectionViewer, OnInit, AfterContentChecked {

src/cdk/tree/tree.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ export class CdkTreeNode<T> implements FocusableOption, OnDestroy {
132132
'role': 'tree',
133133
},
134134
encapsulation: ViewEncapsulation.None,
135-
preserveWhitespaces: false,
136135
changeDetection: ChangeDetectionStrategy.OnPush
137136
})
138137
export class CdkTree<T> implements CollectionViewer, OnInit, OnDestroy {

src/demo-app/a11y/a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class AccessibilityHome {}
2323
templateUrl: 'a11y.html',
2424
styleUrls: ['a11y.css'],
2525
encapsulation: ViewEncapsulation.None,
26-
preserveWhitespaces: false,
2726
})
2827
export class AccessibilityDemo implements OnDestroy {
2928
currentComponent: string = '';

src/demo-app/a11y/icon/icon-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {MatSnackBar} from '@angular/material';
1414
selector: 'icon-a11y',
1515
templateUrl: 'icon-a11y.html',
1616
encapsulation: ViewEncapsulation.None,
17-
preserveWhitespaces: false,
1817
})
1918
export class IconAccessibilityDemo {
2019
constructor(private snackBar: MatSnackBar) {}

src/demo-app/a11y/sidenav/basic-sidenav-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ import {Component, ViewEncapsulation} from '@angular/core';
1616
styleUrls: ['shared.css'],
1717
host: {'class': 'a11y-demo-sidenav-app'},
1818
encapsulation: ViewEncapsulation.None,
19-
preserveWhitespaces: false,
2019
})
2120
export class SidenavBasicAccessibilityDemo {}

src/demo-app/a11y/sidenav/dual-sidenav-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {MatSnackBar} from '@angular/material/snack-bar';
1717
styleUrls: ['shared.css', 'dual-sidenav-a11y.css'],
1818
host: {'class': 'a11y-demo-sidenav-app'},
1919
encapsulation: ViewEncapsulation.None,
20-
preserveWhitespaces: false,
2120
})
2221
export class SidenavDualAccessibilityDemo {
2322
constructor(private _snackbar: MatSnackBar) {}

src/demo-app/a11y/sidenav/mobile-sidenav-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {ChangeDetectorRef, Component, OnDestroy, ViewEncapsulation} from '@angul
1717
styleUrls: ['shared.css', 'mobile-sidenav-a11y.css'],
1818
host: {'class': 'a11y-demo-sidenav-app'},
1919
encapsulation: ViewEncapsulation.None,
20-
preserveWhitespaces: false,
2120
})
2221
export class SidenavMobileAccessibilityDemo implements OnDestroy {
2322
mobileQuery: MediaQueryList;

src/demo-app/a11y/sidenav/sidenav-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ import {Component} from '@angular/core';
1313
moduleId: module.id,
1414
selector: 'sidenav-a11y',
1515
templateUrl: 'sidenav-a11y.html',
16-
preserveWhitespaces: false,
1716
})
1817
export class SidenavAccessibilityDemo {}

src/demo-app/autocomplete/autocomplete-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export interface StateGroup {
2727
templateUrl: 'autocomplete-demo.html',
2828
styleUrls: ['autocomplete-demo.css'],
2929
encapsulation: ViewEncapsulation.None,
30-
preserveWhitespaces: false,
3130
})
3231
export class AutocompleteDemo {
3332
stateCtrl: FormControl;

src/demo-app/bottom-sheet/bottom-sheet-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const defaultConfig = new MatBottomSheetConfig();
2121
styleUrls: ['bottom-sheet-demo.css'],
2222
templateUrl: 'bottom-sheet-demo.html',
2323
encapsulation: ViewEncapsulation.None,
24-
preserveWhitespaces: false,
2524
})
2625
export class BottomSheetDemo {
2726
config: MatBottomSheetConfig = {

src/demo-app/demo-app/demo-app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {Component, ElementRef, ViewEncapsulation} from '@angular/core';
2020
selector: 'entry-app',
2121
template: '<router-outlet></router-outlet>',
2222
encapsulation: ViewEncapsulation.None,
23-
preserveWhitespaces: false,
2423
})
2524
export class EntryApp {}
2625

@@ -45,7 +44,6 @@ export class Home {}
4544
templateUrl: 'demo-app.html',
4645
styleUrls: ['demo-app.css'],
4746
encapsulation: ViewEncapsulation.None,
48-
preserveWhitespaces: false,
4947
})
5048
export class DemoApp {
5149
dark = false;

src/demo-app/drawer/drawer-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {Component, ViewEncapsulation} from '@angular/core';
1515
templateUrl: 'drawer-demo.html',
1616
styleUrls: ['drawer-demo.css'],
1717
encapsulation: ViewEncapsulation.None,
18-
preserveWhitespaces: false,
1918
})
2019
export class DrawerDemo {
2120
invert = false;

src/demo-app/expansion/expansion-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {MatAccordion} from '@angular/material';
1515
styleUrls: ['expansion-demo.css'],
1616
templateUrl: 'expansion-demo.html',
1717
encapsulation: ViewEncapsulation.None,
18-
preserveWhitespaces: false,
1918
})
2019
export class ExpansionDemo {
2120
@ViewChild(MatAccordion) accordion: MatAccordion;

src/demo-app/icon/icon-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {MatIconRegistry} from '@angular/material';
1616
templateUrl: 'icon-demo.html',
1717
styleUrls: ['icon-demo.css'],
1818
encapsulation: ViewEncapsulation.None,
19-
preserveWhitespaces: false,
2019
})
2120
export class IconDemo {
2221
constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer) {

src/demo-app/overlay/overlay-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {tap} from 'rxjs/operators/tap';
2626
templateUrl: 'overlay-demo.html',
2727
styleUrls: ['overlay-demo.css'],
2828
encapsulation: ViewEncapsulation.None,
29-
preserveWhitespaces: false,
3029
})
3130
export class OverlayDemo {
3231
nextPosition: number = 0;

src/demo-app/sidenav/sidenav-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {Component, ViewEncapsulation} from '@angular/core';
1515
templateUrl: 'sidenav-demo.html',
1616
styleUrls: ['sidenav-demo.css'],
1717
encapsulation: ViewEncapsulation.None,
18-
preserveWhitespaces: false,
1918
})
2019
export class SidenavDemo {
2120
isLaunched = false;

src/demo-app/snack-bar/snack-bar-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
styleUrls: ['snack-bar-demo.css'],
2323
templateUrl: 'snack-bar-demo.html',
2424
encapsulation: ViewEncapsulation.None,
25-
preserveWhitespaces: false,
2625
})
2726
export class SnackBarDemo {
2827
@ViewChild('template') template: TemplateRef<any>;

src/demo-app/tabs/tabs-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {Observable} from 'rxjs/Observable';
1515
templateUrl: 'tabs-demo.html',
1616
styleUrls: ['tabs-demo.css'],
1717
encapsulation: ViewEncapsulation.None,
18-
preserveWhitespaces: false,
1918
})
2019
export class TabsDemo {
2120
// Nav bar demo

src/demo-app/tooltip/tooltip-demo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {TooltipPosition} from '@angular/material';
1616
templateUrl: 'tooltip-demo.html',
1717
styleUrls: ['tooltip-demo.css'],
1818
encapsulation: ViewEncapsulation.None,
19-
preserveWhitespaces: false,
2019
})
2120
export class TooltipDemo {
2221
position: TooltipPosition = 'below';

src/lib/autocomplete/autocomplete.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS =
7171
templateUrl: 'autocomplete.html',
7272
styleUrls: ['autocomplete.css'],
7373
encapsulation: ViewEncapsulation.None,
74-
preserveWhitespaces: false,
7574
changeDetection: ChangeDetectionStrategy.OnPush,
7675
exportAs: 'matAutocomplete',
7776
inputs: ['disableRipple'],

src/lib/bottom-sheet/bottom-sheet-container.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {FocusTrap, FocusTrapFactory} from '@angular/cdk/a11y';
4747
styleUrls: ['bottom-sheet-container.css'],
4848
changeDetection: ChangeDetectionStrategy.OnPush,
4949
encapsulation: ViewEncapsulation.None,
50-
preserveWhitespaces: false,
5150
animations: [matBottomSheetAnimations.bottomSheetState],
5251
host: {
5352
'class': 'mat-bottom-sheet-container',

src/lib/button-toggle/button-toggle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ export const _MatButtonToggleMixinBase = mixinDisableRipple(MatButtonToggleBase)
242242
templateUrl: 'button-toggle.html',
243243
styleUrls: ['button-toggle.css'],
244244
encapsulation: ViewEncapsulation.None,
245-
preserveWhitespaces: false,
246245
exportAs: 'matButtonToggle',
247246
changeDetection: ChangeDetectionStrategy.OnPush,
248247
inputs: ['disableRipple'],

src/lib/button/button.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export const _MatButtonMixinBase = mixinColor(mixinDisabled(mixinDisableRipple(M
7070
styleUrls: ['button.css'],
7171
inputs: ['disabled', 'disableRipple', 'color'],
7272
encapsulation: ViewEncapsulation.None,
73-
preserveWhitespaces: false,
7473
changeDetection: ChangeDetectionStrategy.OnPush,
7574
})
7675
export class MatButton extends _MatButtonMixinBase
@@ -155,7 +154,6 @@ export class MatButton extends _MatButtonMixinBase
155154
templateUrl: 'button.html',
156155
styleUrls: ['button.css'],
157156
encapsulation: ViewEncapsulation.None,
158-
preserveWhitespaces: false,
159157
changeDetection: ChangeDetectionStrategy.OnPush,
160158
})
161159
export class MatAnchor extends MatButton {

src/lib/card/card.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ export class MatCardAvatar {}
155155
templateUrl: 'card.html',
156156
styleUrls: ['card.css'],
157157
encapsulation: ViewEncapsulation.None,
158-
preserveWhitespaces: false,
159158
changeDetection: ChangeDetectionStrategy.OnPush,
160159
host: {'class': 'mat-card'}
161160
})
@@ -172,7 +171,6 @@ export class MatCard {}
172171
selector: 'mat-card-header',
173172
templateUrl: 'card-header.html',
174173
encapsulation: ViewEncapsulation.None,
175-
preserveWhitespaces: false,
176174
changeDetection: ChangeDetectionStrategy.OnPush,
177175
host: {'class': 'mat-card-header'}
178176
})
@@ -189,7 +187,6 @@ export class MatCardHeader {}
189187
selector: 'mat-card-title-group',
190188
templateUrl: 'card-title-group.html',
191189
encapsulation: ViewEncapsulation.None,
192-
preserveWhitespaces: false,
193190
changeDetection: ChangeDetectionStrategy.OnPush,
194191
host: {'class': 'mat-card-title-group'}
195192
})

src/lib/checkbox/checkbox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export const _MatCheckboxMixinBase =
112112
providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR],
113113
inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'],
114114
encapsulation: ViewEncapsulation.None,
115-
preserveWhitespaces: false,
116115
changeDetection: ChangeDetectionStrategy.OnPush
117116
})
118117
export class MatCheckbox extends _MatCheckboxMixinBase implements ControlValueAccessor,

src/lib/chips/chip-list.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export class MatChipListChange {
9292
providers: [{provide: MatFormFieldControl, useExisting: MatChipList}],
9393
styleUrls: ['chips.css'],
9494
encapsulation: ViewEncapsulation.None,
95-
preserveWhitespaces: false,
9695
changeDetection: ChangeDetectionStrategy.OnPush
9796
})
9897
export class MatChipList extends _MatChipListMixinBase implements MatFormFieldControl<any>,

src/lib/core/option/optgroup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ let _uniqueOptgroupIdCounter = 0;
2626
exportAs: 'matOptgroup',
2727
templateUrl: 'optgroup.html',
2828
encapsulation: ViewEncapsulation.None,
29-
preserveWhitespaces: false,
3029
changeDetection: ChangeDetectionStrategy.OnPush,
3130
inputs: ['disabled'],
3231
styleUrls: ['optgroup.css'],

src/lib/core/option/option.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export const MAT_OPTION_PARENT_COMPONENT =
8181
styleUrls: ['option.css'],
8282
templateUrl: 'option.html',
8383
encapsulation: ViewEncapsulation.None,
84-
preserveWhitespaces: false,
8584
changeDetection: ChangeDetectionStrategy.OnPush,
8685
})
8786
export class MatOption implements AfterViewChecked {

src/lib/core/selection/pseudo-checkbox/pseudo-checkbox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
2626
@Component({
2727
moduleId: module.id,
2828
encapsulation: ViewEncapsulation.None,
29-
preserveWhitespaces: false,
3029
changeDetection: ChangeDetectionStrategy.OnPush,
3130
selector: 'mat-pseudo-checkbox',
3231
styleUrls: ['pseudo-checkbox.css'],

src/lib/datepicker/calendar-body.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export class MatCalendarCell {
4646
},
4747
exportAs: 'matCalendarBody',
4848
encapsulation: ViewEncapsulation.None,
49-
preserveWhitespaces: false,
5049
changeDetection: ChangeDetectionStrategy.OnPush,
5150
})
5251
export class MatCalendarBody {

src/lib/datepicker/calendar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import {MatYearView} from './year-view';
4545
},
4646
exportAs: 'matCalendar',
4747
encapsulation: ViewEncapsulation.None,
48-
preserveWhitespaces: false,
4948
changeDetection: ChangeDetectionStrategy.OnPush,
5049
})
5150
export class MatCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {

src/lib/datepicker/datepicker-toggle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class MatDatepickerToggleIcon {}
4747
},
4848
exportAs: 'matDatepickerToggle',
4949
encapsulation: ViewEncapsulation.None,
50-
preserveWhitespaces: false,
5150
changeDetection: ChangeDetectionStrategy.OnPush,
5251
})
5352
export class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {

src/lib/datepicker/datepicker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export const _MatDatepickerContentMixinBase = mixinColor(MatDatepickerContentBas
9494
},
9595
exportAs: 'matDatepickerContent',
9696
encapsulation: ViewEncapsulation.None,
97-
preserveWhitespaces: false,
9897
changeDetection: ChangeDetectionStrategy.OnPush,
9998
inputs: ['color'],
10099
})
@@ -134,7 +133,6 @@ export class MatDatepickerContent<D> extends _MatDatepickerContentMixinBase
134133
exportAs: 'matDatepicker',
135134
changeDetection: ChangeDetectionStrategy.OnPush,
136135
encapsulation: ViewEncapsulation.None,
137-
preserveWhitespaces: false,
138136
})
139137
export class MatDatepicker<D> implements OnDestroy, CanColor {
140138
/** The date to open the calendar to initially. */

src/lib/datepicker/month-view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const DAYS_PER_WEEK = 7;
4949
templateUrl: 'month-view.html',
5050
exportAs: 'matMonthView',
5151
encapsulation: ViewEncapsulation.None,
52-
preserveWhitespaces: false,
5352
changeDetection: ChangeDetectionStrategy.OnPush
5453
})
5554
export class MatMonthView<D> implements AfterContentInit {

src/lib/datepicker/multi-year-view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const yearsPerRow = 4;
4949
templateUrl: 'multi-year-view.html',
5050
exportAs: 'matMultiYearView',
5151
encapsulation: ViewEncapsulation.None,
52-
preserveWhitespaces: false,
5352
changeDetection: ChangeDetectionStrategy.OnPush
5453
})
5554
export class MatMultiYearView<D> implements AfterContentInit {

src/lib/datepicker/year-view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import {createMissingDateImplError} from './datepicker-errors';
4545
templateUrl: 'year-view.html',
4646
exportAs: 'matYearView',
4747
encapsulation: ViewEncapsulation.None,
48-
preserveWhitespaces: false,
4948
changeDetection: ChangeDetectionStrategy.OnPush
5049
})
5150
export class MatYearView<D> implements AfterContentInit {

0 commit comments

Comments
 (0)