Error 400 (Bad Request) when using ng-include - AngularJS

0

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.

    
asked by Paulo Urbano Rivera 11.07.2017 в 18:46
source

0 answers