Is there a way to prevent the ng-include
directive from trying to render before a value on scope is set?
Consider the following example:
<ng-include src="'./lib/templates/' + $parent.currentEditable.editTemplate"></ng-include>
It seems like Angular is attempting to render the template before
$parent.currentEditable.editTemplate
is defined. The console shows this error message:
GET http://localhost:3000/admin/lib/templates/ 404 (Not Found)