How can I do the ng-include conditionally in angularJS?
For example I only want to include something if, the variable x is set to true.
x
true
A little bit more readable version of one of the answers. Plus setting ng-include to null removes the element - just like ng-if.
ng-include
null
ng-if