data-ng-include - file not found

I’m developing AngularJS based gadget and I want to include another xhtml into main view.xhtml


<!DOCTYPE html>
<html>
<body>
		
	<div data-ng-include="'gadgets/GadgetName/views/view1.xhtml'"></div>
	
</body>
</html>

and on Chrome Console:

And I’v alredy tried probably every other path combination, this one is context_root/gadget_directory, no matter what I put there - nothing displays.

That’s what documentation says

<div data-ng-include="/<CONTEXT_ROOT_OF_APPLICATION/<GADGETS_DIRECTORY>
/views/view1.xhtml">
</div>

Hi Jan,

Can you please share a sample gadget with your problem, so that we can analyze what is causing this.

Thanks & Regards

Vinay

Can you please try to put your new xhtml page (view1.xhtml) here under the root directory where your view.xhtml is located and try to invoke by removing path like below .

Let me know if this helps .