Colleagues, I have a problem using the ng-include
directive; my idea is to load one view or another depending on the value of a particular $scope
:
<div ng-switch on="itemSelected[0].label">
<div ng-switch-when="Empresas">
EMPRESA
</div>
<div ng-switch-default>
PERSONA
</div>
</div>
So far so good, but when I replace the text with ng-include it throws an error 400:
<ng-include src="'view.html'"></ng-include>
Any idea what could be causing this? Any info is appreciated.