When trying to add an ng-view
inside an ng-include
, nothing happens. e.g. in the following code, when themes/midnight/index.html holds an ng-view
, no view is rendered:
<ng-include src="'themes/midnight/index.html'"></ng-include>
However, if I use the code below, the view shows twice:
<ng-include src="'themes/midnight/index.html'"></ng-include>
<div ng-view></div>
What is the problem and how can I resolve it?