This commit is contained in:
geek 2018-06-11 23:08:23 +09:00
parent f7364cf99e
commit 0f69c63a98
2 changed files with 1 additions and 7 deletions

View File

@ -32,7 +32,7 @@ import {PlatformLocation} from '@angular/common';
selector: 'of-target-list',
templateUrl: './list.component.html',
})
export class ListComponent implements OnInit, OnChanges {
export class ListComponent implements OnInit {
@Input() probeID;
@Input() pageIdx;
@ -56,8 +56,6 @@ export class ListComponent implements OnInit, OnChanges {
}
ngOnInit() {
// this.getTargetList();
console.log(this.paginator);
}
ngOnChanges(changes: SimpleChanges): void {

View File

@ -28,10 +28,6 @@ export class TargetListPageComponent implements OnInit {
}
onPageChange(pageNo: number) {
// console.log(pageNo);
// if (pageNo + 1 === this.pageIdx) {
// return;
// }
this.pageIdx = pageNo + 1;
this.router.navigate(['/probe', this.probeID, 'target'], { queryParams: { page: this.pageIdx } });
}