Skip to content

Commit

Permalink
Add selectedTab option
Browse files Browse the repository at this point in the history
  • Loading branch information
anandsinghparihar committed Dec 19, 2017
1 parent 2983828 commit c41cf29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/wallet/wallet/history/history.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<app-header class="disable-select">
<div class="container-fluid">
<mat-tab-group (selectChange)="changeCategory($event.index)">
<mat-tab-group (selectChange)="changeCategory($event.index)" [selectedIndex]="selectedTab">
<!-- [(selectedIndex)]="categories.indexOf(filters.category)"> -->
<mat-tab *ngFor="let category of categories">
<ng-template mat-tab-label>
Expand Down
3 changes: 3 additions & 0 deletions src/app/wallet/wallet/history/history.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export class HistoryComponent implements OnInit {
type: undefined
};

// default tab is zero
public selectedTab: number = 0;

constructor() {
this.default();
}
Expand Down

0 comments on commit c41cf29

Please sign in to comment.