In angularjs app I want to dynamically load partial view, so I have in my view
<ng-include src="'{{ pathView }}'"></ng-include>
this view is ofcourse attached to certain controller and in my controller I have
$scope.pathView= "/templates/listView.html";
this not work since when investigating html view I'm getting
<!-- ngInclude: undefined -->
When I hardcode template view path
<ng-include src="'/templates/listView.html'"></ng-include>
it works.
What I'm doing wrong?