Infinite loop with AngularJS and ng-include

If you're working with AngularJS and you're using ng-include, make sure the file you want to include actually exists. Just spent about 2 hours ranting and shouting profanities at Angular because of this.

Example:

<div ng-if="questionData.type == 'F' || questionData.type == 'H'" 
ng-include="'partials/question/view/array'"></div>

This will not work, as the file I want to include is a HTML file. This is the correct code:

<div ng-if="questionData.type == 'F' || questionData.type == 'H'" 
ng-include="'partials/question/view/array.html'"></div>