How will you show/hide buttons and enable/disable buttons conditionally?



How will you show/hide buttons and enable/disable buttons conditionally?..

Answer / Hina Zehra

In AngularJS, you can show/hide buttons or enable/disable them based on conditions using ng-show, ng-hide, ng-if, and ng-disabled directives. Here's an example for showing a button based on a condition:

```html
<button ng-show='condition'>Show Button</button>
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is event distner and host distner in angular?

1 Answers  


Explain the difference between promise and observable in angular?

1 Answers  


What is route params?

1 Answers  


What Are The Security Features Provided By AngularJS?

1 Answers  


What are the features of angular 7?

1 Answers  


If your data model is updated outside the ‘zone’, explain the process how will you the view?

1 Answers  


What is the use of a double-click event in angularjs?

1 Answers  


What would be a good use for ngzone service?

1 Answers  


What is two way data binding in angular?

1 Answers  


List and explain different types of directive available in angularjs?

1 Answers  


Which is better angular material or bootstrap?

1 Answers  


Explain the advantages of angularjs.

1 Answers  


Categories