<pre><button (click)="toggleShow()" type="checkbox" >show/hide</button> <div *ngIf="isShown" class="row container-fluid" id="divshow" > Div Content </div>
isShown: boolean = false ; // hidden by default toggleShow() { this.isShown = ! this.isShown; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)