the following ng-include tag works on developer box, not in iis website, because not include site's name in output.
<div ng-include="'/app/feature/list.html'" /> on developer machine running iisexpress builds url: http://localhost:49716/app/feature/list.html , works well.
when deployed iis url is: http://server/app/feature/list.html. not work because site given name , served @ /site. expected url http://server/site/app/feature/list.html. results in 404 , broken site.
shouldn't angular able build true path relative site itself? there way make angular without resorting injecting configuration?
my problem slash @ url. slash implies absolute path instead of relative one. ng-include works:
<div ng-include="'app/feature/list.html'" />
Comments
Post a Comment