angular ng show hide code example
Example 1: hide and show in angular 8
<button (click)="toggleShow()" type="checkbox" >show/hide</button>
<div *ngIf="isShown" class="row container-fluid" id="divshow" >
Div Content
</div>
Example 2: hide and show in angular 8
isShown: boolean = false ;
toggleShow() {
this.isShown = ! this.isShown;
}
Example 3: ngshow
<div ng-show="myVar">stuff</div>
Example 4: ngshow
<div class="dropdown">
<button class="btn btn-default" (click)="manualtoggle()" id="dropdownMenu1" >
Seleccione una Ubicación
<span class="caret"></span>
</button>
<ul class="dropdown-menu" [ngStyle]="{display:displayddl}">
<li *ngFor="let object of Array" (click)="selectLocation(location)">{{object.Value}}</li>
</ul>
</div>