angular.io hide
<div [style.visibility]="(numberOfUnreadAlerts == 0) ? 'hidden' : 'visible' ">
COUNTER: {{numberOfUnreadAlerts}}
</div>
angular.io hide
<div [style.visibility]="(numberOfUnreadAlerts == 0) ? 'hidden' : 'visible' ">
COUNTER: {{numberOfUnreadAlerts}}
</div>
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>
hide and show in angular 8
isShown: boolean = false ; // hidden by default
toggleShow() {
this.isShown = ! this.isShown;
}
angular hide element from component when on certain page
// in .component.ts file
import { Router } from '@angular/router';
export class ExampleComponent {
constructor(private _router: Router) {}
}
// in html file
<footer *ngIf="_router.url != '/your-route'"></footer>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us