2 ms·
> As far as I know it's not possible to completely remove an Angular component from the DOM Wouldn't ng-if be appropriate for this?
by optymizer 12y ago
> As far as I know it's not possible to completely remove an Angular component from the DOM
Wouldn't ng-if be appropriate for this?
- couchand 12y agoAh yes, that's exactly what `ng-if` is for. Thanks for pointing that out. The only downside is that it creates another nested scope, which can be surprising.