Issue
I want to create one button like pre, when ever I will onclick of pre button (getPrevWeek
) will show the Next button, how can I create on this angular.
Note: Here ##hide/show is working. i need only for show
Blow my angular html code:
<button type="button" [disabled]="prevJoinDateValid" class="btn btn-info btn-spacing" (click)="getPrevWeek()" id="prev">Prev</button>
<button *ngIf="isShownnext" type="button" class="btn btn-info btn-spacing" (click)="getNextWeek()" id="next">Next</button>
angular ts file:
isShownnext: boolean = false ;
getPrevWeek() {
this.isShownnext = ! this.isShownnext;
}
Solution
You only need to set the value of this.isShownnext to true this.isShownnext = true
Answered By - Mahdi Guesmi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.