From ec4ca71dd071e394e9f00d96ca6040c690b6d38b Mon Sep 17 00:00:00 2001 From: Frederic Ghilini Date: Mon, 27 Mar 2017 09:51:11 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20AOT=20compilation=20warning=20when=20bu?= =?UTF-8?q?ild=20with=20Angular=20CLI=20final=20(Property=20'toggleGroup'?= =?UTF-8?q?=20is=20private=20and=20only=20accessible=20within=20class=20'M?= =?UTF-8?q?dDataTablePaginationComponent=E2=80=99).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/md-datatable-pagination.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 84e5005..e363052 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/md-datatable-pagination.component.ts b/src/md-datatable-pagination.component.ts index 0be4a13..55cce34 100644 --- a/src/md-datatable-pagination.component.ts +++ b/src/md-datatable-pagination.component.ts @@ -60,6 +60,7 @@ export class MdDataTablePaginationComponent implements OnInit, AfterViewInit, On @Input() itemsPerPageChoices: Array = [5, 10, 20, 50]; @Input() itemsPerPageFirstChoice = 10; @Output() paginationChange: EventEmitter; + @ViewChild(MdSelect) toggleGroup: MdSelect; get firstIndexOfPage() { return this.currentPage * this.itemsPerPage - this.itemsPerPage + 1; @@ -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() {