Skip to content

Commit

Permalink
refactor(module:core,tabs): not use re-exported operator from cdk (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
trotyl authored and vthinkxie committed Sep 7, 2017
1 parent 94bac1b commit 2f031ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/core/overlay/scroll/scroll-dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {Subject} from 'rxjs/Subject';
import {Subscription} from 'rxjs/Subscription';
import {fromEvent} from 'rxjs/observable/fromEvent';
import {merge} from 'rxjs/observable/merge';
import {auditTime} from '@angular/cdk';
import {auditTime} from 'rxjs/operator/auditTime';


/** Time in ms to throttle the scrolling events by default. */
Expand Down
3 changes: 2 additions & 1 deletion src/components/tabs/nz-tabs-nav.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ import { NzTabLabelDirective } from './nz-tab-label.directive';

const EXAGGERATED_OVERSCROLL = 64;
export type ScrollDirection = 'after' | 'before';
import { auditTime, startWith } from '@angular/cdk';
import { of as observableOf } from 'rxjs/observable/of';
import { merge } from 'rxjs/observable/merge';
import { fromEvent } from 'rxjs/observable/fromEvent';
import { auditTime } from 'rxjs/operator/auditTime';
import { startWith } from 'rxjs/operator/startWith';

/** duplicated defined https://github.com/angular/angular-cli/issues/2034 **/
export type NzTabPositionMode = 'horizontal' | 'vertical';
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/nz-tabset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
} from '@angular/core';
import { NzTabComponent } from './nz-tab.component';
import { NzTabsNavComponent } from './nz-tabs-nav.component';
import { map } from '@angular/cdk';
import { Observable } from 'rxjs/Observable';
import { map } from 'rxjs/operator/map';

export interface NzAnimatedInterface {
inkBar: boolean,
Expand Down

0 comments on commit 2f031ce

Please sign in to comment.