mike mike - 1 year ago 65
AngularJS Question

How to hide a div with it's id in angularJS?

Here i want to hide a div with id,is it possible in angularJS.I know it is possible to hide anything with

.but i dont know how to hide a div with it's id.

Answer Source

You can use good old jquery to do that, but it's really preferable to avoid modifying the dom directly like that.

Using a scope variable give far more flexibility than modifying style attributes directly.

Use ng-if if you don't want the markup in the dom.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download