<!DOCTYPE html>
<html ng-app="">
<head>
<script data-require="angular.js@*" data-semver="1.2.0-rc2" src="http://code.angularjs.org/1.2.0-rc.2/angular.js"></script>
</head>
<body ng-init="test=false">
<h3>ngInclude and ngIf problem</h3>
<input type="checkbox" ng-model="test" />
Toggle ng-if
<ol>
<li ng-if="test">ngIf works</li>
<li ng-include="'includeme.html'"></li>
<li ng-if="test" ng-include="" src="'includeme.html'">ngIf + ngInclude does not work!</li>
<li ng-if="test">
<div ng-include="'includeme.html'">ngIf > ngInclude does not work!</div>
</li>
</ol>
</body>
</html>
ngInclude works