Skip to content

Commit b00f838

Browse files
devversiontinayuangao
authored andcommitted
feat: move observe-content to cdk (#5438)
* Moves the observe content directive to the CDK package.
1 parent 9d621c7 commit b00f838

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

src/cdk/observe-content/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
export * from './observe-content';

src/cdk/public_api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export * from './table/index';
1313
export * from './platform/index';
1414
export * from './portal/index';
1515
export * from './rxjs/index';
16+
export * from './observe-content/index';
1617
export * from './keyboard/keycodes';

src/lib/checkbox/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import {NgModule} from '@angular/core';
1010
import {CommonModule} from '@angular/common';
11-
import {MdRippleModule, MdCommonModule, FocusOriginMonitor, ObserveContentModule} from '../core';
11+
import {ObserveContentModule} from '@angular/cdk';
12+
import {MdRippleModule, MdCommonModule, FocusOriginMonitor} from '../core';
1213
import {MdCheckbox} from './checkbox';
1314

1415

src/lib/core/core.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*/
88

99
import {NgModule} from '@angular/core';
10+
import {ObserveContentModule} from '@angular/cdk';
1011
import {MdLineModule} from './line/line';
1112
import {BidiModule} from './bidi/index';
12-
import {ObserveContentModule} from './observe-content/observe-content';
1313
import {MdOptionModule} from './option/index';
1414
import {PortalModule} from './portal/portal-directives';
1515
import {OverlayModule} from './overlay/index';
@@ -18,14 +18,16 @@ import {MdSelectionModule} from './selection/index';
1818
import {MdRippleModule} from './ripple/index';
1919

2020
// Re-exports of the CDK to avoid breaking changes.
21-
export {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk';
21+
export {
22+
coerceBooleanProperty,
23+
coerceNumberProperty,
24+
ObserveContentModule,
25+
ObserveContent
26+
} from '@angular/cdk';
2227

2328
// RTL
2429
export {Dir, Direction, Directionality, BidiModule} from './bidi/index';
2530

26-
// Mutation Observer
27-
export {ObserveContentModule, ObserveContent} from './observe-content/observe-content';
28-
2931
export * from './option/index';
3032

3133
// Portals

src/lib/tabs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import {NgModule} from '@angular/core';
1010
import {CommonModule} from '@angular/common';
11+
import {ObserveContentModule} from '@angular/cdk';
1112
import {PortalModule} from '../core';
1213
import {MdRippleModule} from '../core/ripple/index';
13-
import {ObserveContentModule} from '../core/observe-content/observe-content';
1414
import {MdTab} from './tab';
1515
import {MdTabGroup} from './tab-group';
1616
import {MdTabLabel} from './tab-label';

0 commit comments

Comments
 (0)