diff --git a/src/cdk/table/row.ts b/src/cdk/table/row.ts index 31e7379cb9d4..c4e144d7459d 100644 --- a/src/cdk/table/row.ts +++ b/src/cdk/table/row.ts @@ -6,22 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ -import { - ChangeDetectionStrategy, - Component, - Directive, - IterableChanges, - IterableDiffer, - IterableDiffers, - OnChanges, - OnDestroy, - SimpleChanges, - TemplateRef, - ViewContainerRef, - ViewEncapsulation, -} from '@angular/core'; -import {CanStick, CanStickCtor, mixinHasStickyInput} from './can-stick'; -import {CdkCellDef, CdkColumnDef} from './cell'; +import { Component, Directive, IterableChanges, IterableDiffer, IterableDiffers, OnChanges, OnDestroy, SimpleChanges, TemplateRef, ViewContainerRef, ViewEncapsulation } from '@angular/core'; +import { CanStick, CanStickCtor, mixinHasStickyInput } from './can-stick'; +import { CdkCellDef, CdkColumnDef } from './cell'; /** * The row template that can be used by the mat-table. Should not be used outside of the @@ -248,7 +235,6 @@ export class CdkCellOutlet implements OnDestroy { 'class': 'cdk-header-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, }) export class CdkHeaderRow { } @@ -263,7 +249,6 @@ export class CdkHeaderRow { } 'class': 'cdk-footer-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, }) export class CdkFooterRow { } @@ -277,7 +262,6 @@ export class CdkFooterRow { } 'class': 'cdk-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, }) export class CdkRow { } diff --git a/src/cdk/table/table.ts b/src/cdk/table/table.ts index 373b6a7473d7..9ea5972636dc 100644 --- a/src/cdk/table/table.ts +++ b/src/cdk/table/table.ts @@ -10,7 +10,6 @@ import {CollectionViewer, DataSource} from '@angular/cdk/collections'; import { AfterContentChecked, Attribute, - ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, @@ -158,7 +157,6 @@ export interface RenderRow { 'class': 'cdk-table', }, encapsulation: ViewEncapsulation.None, - changeDetection: ChangeDetectionStrategy.OnPush, }) export class CdkTable implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit { private _document: Document; diff --git a/src/lib/table/row.ts b/src/lib/table/row.ts index 2c1f3f0b320a..b1c1d4aaec2c 100644 --- a/src/lib/table/row.ts +++ b/src/lib/table/row.ts @@ -7,7 +7,6 @@ */ import { - ChangeDetectionStrategy, Component, Directive, ViewEncapsulation @@ -63,7 +62,6 @@ export class MatRowDef extends CdkRowDef {} 'class': 'mat-header-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matHeaderRow', providers: [{provide: CdkHeaderRow, useExisting: MatHeaderRow}], @@ -79,7 +77,6 @@ export class MatHeaderRow extends CdkHeaderRow { } 'class': 'mat-footer-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matFooterRow', providers: [{provide: CdkFooterRow, useExisting: MatFooterRow}], @@ -95,7 +92,6 @@ export class MatFooterRow extends CdkFooterRow { } 'class': 'mat-row', 'role': 'row', }, - changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matRow', providers: [{provide: CdkRow, useExisting: MatRow}], diff --git a/src/lib/table/table.ts b/src/lib/table/table.ts index d6acb8649934..a29d9fa98281 100644 --- a/src/lib/table/table.ts +++ b/src/lib/table/table.ts @@ -7,7 +7,7 @@ */ import {CDK_TABLE_TEMPLATE, CdkTable} from '@angular/cdk/table'; -import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core'; +import {Component, ViewEncapsulation} from '@angular/core'; /** * Wrapper for the CdkTable with Material design styles. @@ -22,7 +22,6 @@ import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/co 'class': 'mat-table', }, encapsulation: ViewEncapsulation.None, - changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatTable extends CdkTable { /** Overrides the sticky CSS class set by the `CdkTable`. */