How can I show a div when menu item is clicked in angular?
The Div show fine when I click list item, but dsn't disappear when I navigate to other menu items.
How can I show a div when menu item is clicked in angular?
The Div show fine when I click list item, but dsn't disappear when I navigate to other menu items.
HI,
Using hidden property
Add HTML native hidden property to the element that needs to be toggled. When the value of hidden property is true, the element is not displayed.
Similarly, when it is false, the element is shown.
Bind the hidden property to a component property of boolean type so that it can only have a true or false value.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.