Skip to content

Commit

Permalink
Fixed AOT compilation warning when build with Angular CLI final (Prop…
Browse files Browse the repository at this point in the history
…erty 'toggleGroup' is private and only accessible within class 'MdDataTablePaginationComponent’).
  • Loading branch information
Frederic Ghilini committed Mar 27, 2017
1 parent ae01d53 commit ec4ca71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng2-md-datatable",
"version": "1.1.2",
"version": "1.1.3",
"description": "Angular 2 DataTable component for using with Material 2",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/md-datatable-pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class MdDataTablePaginationComponent implements OnInit, AfterViewInit, On
@Input() itemsPerPageChoices: Array<number> = [5, 10, 20, 50];
@Input() itemsPerPageFirstChoice = 10;
@Output() paginationChange: EventEmitter<IDatatablePaginationEvent>;
@ViewChild(MdSelect) toggleGroup: MdSelect;

get firstIndexOfPage() {
return this.currentPage * this.itemsPerPage - this.itemsPerPage + 1;
Expand All @@ -77,7 +78,6 @@ export class MdDataTablePaginationComponent implements OnInit, AfterViewInit, On
return this.lastIndexOfPage >= this.itemsCount;
}

@ViewChild(MdSelect) private toggleGroup: MdSelect;
private subscription: Subscription;

constructor() {
Expand Down

0 comments on commit ec4ca71

Please sign in to comment.