This code works:
<div ng-include src="'Test.html'"></div>
This code doesn't:
<div ng-include src="ctrl.URL"></div>
(ctrl.URL
is set to "Test.html"
). I also set it to 'Test.html'
and "'Test.html'"
with the same results.
How can I successfully convert this into an expression for use in ng-include
src? I think I am missing some knowledge on how strings get parsed but I was pretty sure 'Test.html'
should work.