Search code examples
htmlknockout.jsdurandalsingle-page-application

Include another HTML file in a HTML file Single Page Application


I have small requirement that i want to include productresults.html file in productsearch.html in durandal(Single Page Application). Can any one help me on this and i have tried the following ways also.

<link rel="components" href="productResults.html">
<!--#include virtual="productSearch.html" --> 

Thanks,
shiva


Solution

  • Thanks for your support and information.

    Finally the code snippts works fine for me in SPA.

    <!--ko compose: {view: 'nav'} -->
    <!--/ko-->