Answers for "angular hide element from component when on certain page"

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 "angular hide element from component when on certain page"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language