Skip to content

Commit

Permalink
fix(pager): multiple times defined event numPages, fixes #111, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
csakduk authored and valorkin committed Jan 30, 2016
1 parent 217fe3a commit 780eebd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/pagination/pager.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ const PAGER_TEMPLATE = `

@Component({
selector: 'pager[ngModel]',
template: PAGER_TEMPLATE,
directives: [NgClass],
inputs: [
'align',
'totalItems', 'itemsPerPage',
'previousText', 'nextText',
],
outputs:['numPages', 'pageChanged'],
template: PAGER_TEMPLATE,
directives: [NgClass]
]
})
export class Pager extends Pagination implements OnInit {
public config = pagerConfig;
Expand All @@ -39,3 +38,10 @@ export class Pager extends Pagination implements OnInit {
super(cd, renderer, elementRef);
}
}
// todo: pager should support only this in/out
//inputs: [
// 'align',
// 'totalItems', 'itemsPerPage',
// 'previousText', 'nextText',
//],
// outputs:['numPages', 'pageChanged'],

0 comments on commit 780eebd

Please sign in to comment.