Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

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>
Comment

PREVIOUS NEXT
Code Example
Typescript :: Coronavirus treatments India 
Typescript :: get documents path c# 
Typescript :: angular navigate to the same route with different parameter 
Typescript :: how to check typescript version for my react-app 
Typescript :: remove empty objects from array lodash 
Typescript :: how to see what program is using a port 
Typescript :: parser error cannot read tsconfig.dev.json 
Typescript :: foreach loop in typescript 
Typescript :: react query staletime 
Typescript :: swalert 2 show loader 
Typescript :: ggplots in r 
Typescript :: how to declare a boolean in typescript 
Typescript :: media breakpoints bootstrap 4 
Typescript :: getstaticpaths in nextjs 
Typescript :: typescript throw not implemented exception 
Typescript :: angular mailto on button click 
Typescript :: how to use get element by id in angular 
Typescript :: angular firestore timestamp date pipe 
Typescript :: Template variables are read-only. 
Typescript :: states on the west coast 
Typescript :: typescript key values interface key from enum 
Typescript :: dictionary comprehension using while copying elements from another dictionary in python 
Typescript :: how to get url parameters snapshots in angular 
Typescript :: how to declare an empty array in typescript 
Typescript :: get elements in list in another list c# 
Typescript :: if exits python sql 
Typescript :: google sheets sumif 
Typescript :: declare object array in typescript 
Typescript :: ganache 
Typescript :: whats $_.FullName in powershell 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =