Skip to content

Commit

Permalink
feat: move observe-content to cdk (#5438)
Browse files Browse the repository at this point in the history
* Moves the observe content directive to the CDK package.
  • Loading branch information
devversion authored and tinayuangao committed Jun 30, 2017
1 parent 9d621c7 commit b00f838
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
9 changes: 9 additions & 0 deletions src/cdk/observe-content/index.ts
@@ -0,0 +1,9 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

export * from './observe-content';
File renamed without changes.
1 change: 1 addition & 0 deletions src/cdk/public_api.ts
Expand Up @@ -13,4 +13,5 @@ export * from './table/index';
export * from './platform/index';
export * from './portal/index';
export * from './rxjs/index';
export * from './observe-content/index';
export * from './keyboard/keycodes';
3 changes: 2 additions & 1 deletion src/lib/checkbox/index.ts
Expand Up @@ -8,7 +8,8 @@

import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdRippleModule, MdCommonModule, FocusOriginMonitor, ObserveContentModule} from '../core';
import {ObserveContentModule} from '@angular/cdk';
import {MdRippleModule, MdCommonModule, FocusOriginMonitor} from '../core';
import {MdCheckbox} from './checkbox';


Expand Down
12 changes: 7 additions & 5 deletions src/lib/core/core.ts
Expand Up @@ -7,9 +7,9 @@
*/

import {NgModule} from '@angular/core';
import {ObserveContentModule} from '@angular/cdk';
import {MdLineModule} from './line/line';
import {BidiModule} from './bidi/index';
import {ObserveContentModule} from './observe-content/observe-content';
import {MdOptionModule} from './option/index';
import {PortalModule} from './portal/portal-directives';
import {OverlayModule} from './overlay/index';
Expand All @@ -18,14 +18,16 @@ import {MdSelectionModule} from './selection/index';
import {MdRippleModule} from './ripple/index';

// Re-exports of the CDK to avoid breaking changes.
export {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk';
export {
coerceBooleanProperty,
coerceNumberProperty,
ObserveContentModule,
ObserveContent
} from '@angular/cdk';

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

// Mutation Observer
export {ObserveContentModule, ObserveContent} from './observe-content/observe-content';

export * from './option/index';

// Portals
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tabs/index.ts
Expand Up @@ -8,9 +8,9 @@

import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ObserveContentModule} from '@angular/cdk';
import {PortalModule} from '../core';
import {MdRippleModule} from '../core/ripple/index';
import {ObserveContentModule} from '../core/observe-content/observe-content';
import {MdTab} from './tab';
import {MdTabGroup} from './tab-group';
import {MdTabLabel} from './tab-label';
Expand Down

0 comments on commit b00f838

Please sign in to comment.