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
You could also do
In your controller
$scope.getInclude = function(){ if(x){ return "partial.html"; } return ""; }