I am creating a SPA with Onsen UI (v2 series).
I'm building it without using frameworks like Angular or Vue.
When I click on ons-list-item, I want to transition to hoge.html and return to index.html with the Back button.At this time, I would like to read hoge.html as a separate page (a separate file) instead of writing it as a template in index.html.I know how to write in index.html because there is an official sample.
I just don't know how to do it.
Please let me know.
For example, for template as shown below,
<template id="hoge.html">
<ons-page>
hoge
</ons-page>
</template>
Creating hoge.html and describing the contents of ons-page results in similar behavior.
hoge.html
<ons-page>
hoge
</ons-page>
© 2024 OneMinuteCode. All rights reserved.