Answers for "hide element from don in angu angular"

4

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>
Posted by: Guest on June-02-2020
1

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>
Posted by: Guest on December-01-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language