Imagine some heavy content that might be rendered on a web page, such as a chart. Angular gives 2 options to toggle the visibility of said content.
ng-show>
You could make it work by using ngIf and ngShow together, where each one is controller by different variable. ngIf is going to be set to true once and never set to false again, while ngShow will be toggled as much as the user wants to.
ngIf
ngShow
true
false
Take a look at this fiddle.