From 083ad0c825ebfa04d539c80f07880399939718f7 Mon Sep 17 00:00:00 2001 From: Ilya Surmay Date: Tue, 27 Feb 2018 11:55:59 +0200 Subject: [PATCH] fix(pagination): fix PageChangeEvent export (#3880) --- .../+pagination/demos/content-switching/content-switching.ts | 2 +- src/index.ts | 3 ++- src/pagination/index.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/src/app/components/+pagination/demos/content-switching/content-switching.ts b/demo/src/app/components/+pagination/demos/content-switching/content-switching.ts index 24b11d5e78..0d61929e42 100644 --- a/demo/src/app/components/+pagination/demos/content-switching/content-switching.ts +++ b/demo/src/app/components/+pagination/demos/content-switching/content-switching.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { PageChangedEvent } from '../../../../../../../src/pagination/pagination.component'; +import { PageChangedEvent } from 'ngx-bootstrap/pagination'; @Component({ selector: 'demo-pagination-content-switching', diff --git a/src/index.ts b/src/index.ts index 520100aa0f..e6b57cf481 100644 --- a/src/index.ts +++ b/src/index.ts @@ -84,7 +84,8 @@ export { PagerComponent, PaginationComponent, PaginationConfig, - PaginationModule + PaginationModule, + PageChangedEvent } from './pagination/index'; export { diff --git a/src/pagination/index.ts b/src/pagination/index.ts index c3da7bac89..b1e48f58f7 100644 --- a/src/pagination/index.ts +++ b/src/pagination/index.ts @@ -1,4 +1,4 @@ export { PagerComponent } from './pager.component'; -export { PaginationComponent } from './pagination.component'; +export { PaginationComponent, PageChangedEvent } from './pagination.component'; export { PaginationModule } from './pagination.module'; export { PaginationConfig } from './pagination.config';