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
If you are using Angular v1.1.5 or later, you can also use ng-if:
If you have any older version:
Use ng-switch:
Fiddle