尝试在ng-view
内部添加ng-include
时,没有任何反应。例如,在下面的代码中,当theme/midnight/index.html包含时ng-view
,不会呈现视图:
<ng-include src="'themes/midnight/index.html'"></ng-include>
但是,如果我使用下面的代码,视图会显示两次:
<ng-include src="'themes/midnight/index.html'"></ng-include>
<div ng-view></div>
有什么问题,我该如何解决?