How can you hide an html element just by a button click in angular?
Answer / Deepak Kumar Meena
You can hide an HTML element in Angular by using data binding to bind the visibility of the element to a variable in your controller. When the variable is set to `false`, the element will not be displayed, and when it is set to `true`, it will be displayed again. You can toggle the variable value using the click event of a button or any other interactive element. Here's an example:
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an angular 2 component?
What is spa in angularjs?
How to append base url to http requests in angular?
When to use factory?
What is typescript ?
What are services in angularjs?
Explain the difference between promise and observable in angular?
What is $ digest?
What is scope in angular?
Explain currency filter in angularjs. How can we use it?
What is cross site script inclusion (xssi)?
Write command to generate a component in specific module in angular cli?